473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

table

Dear sir.
I am trying to put my information this way:

gameandtoyname
pricevalue
image

but i am getting this error

Parse error: parse error in C:s\textimage10.php on line 163

Could you help plzz.

[HTML]
[PHP]

<?php
<table>
<tr>';

<td>'$str .= "<a
href=\"textimage10.php?iid=".$row["image_id"]."\">".$row["image_name"]."</a> " '</td>';
</tr>

<tr>';

<td>'$str .= "<a
href=\"textimage10.php?iid=".$row["image_id"]."\">".$row["image_name"]."</a> ";
$str .= "[".$row["gameandtoyname"]."] " '</td>';
</tr>

<tr>';

<td>'$str .= "$".$row["pricevalue"]." " '</td>';
</tr>

<tr>';

<td>'$str .="<img border=\"1\" height=\"90\" width=\"100\"
src=\"imagedolls.php?act=view&iid=".$row["image_id"]."\"></a> " '</td>';
</tr>

if ($this_no < $no_per_line)
{
$this_no++;
}
else
{
$str .= "<br />";
$this_no = 0;
}
}
print $str;
}
</table>';

$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM dolls"),0);
$total_pages = ceil($total_results / $max_results);

echo "<center>Select a Page<br />";

if($page > 1){
$prev = ($page - 1);
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$prev\"><<Previous</a> ";
}

for($i = 1; $i <= $total_pages; $i++){
if(($page) == $i){
echo "$i ";
} else {
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$i\">$i</a> ";
}
}

if($page < $total_pages){
$next = ($page + 1);
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$next\">Next>></a>";
}
echo "</center>";
?>
[/PHP]
[/HTML]
Nov 1 '06 #1
4 1108
ronverdonk
4,258 Expert 4TB
Only when you tell us what statement the error refers to.

Ronald :cool:
Nov 1 '06 #2
Sorry sir.

line 163 is exactly where I open <table>.

Thanks.
Nov 1 '06 #3
ronverdonk
4,258 Expert 4TB
You seem to have a lot of parsing problems. At least, without seeing all the code, a statement like [php]<td>'$str .= "<a [/php] results in an error, because: where is the single quote coming from? If it is from an assignment, then close it with a semi-column. And you have this in a lot of statements.

So, you'll better scan your code for usage of this single quote in your html tags. And also, if you code a td tag with a variable in an echo, you do it like [php]echo "<td>$var".....[/php]

Ronald :cool:
Nov 1 '06 #4
vssp
268 100+
Can u get the view source of the display page and then get the line 163 I think u get the exact line to found the error

vssp
Nov 2 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Gaz | last post by:
Hi, I need to have a table nested within another table. The tables are alongside each other visually speaking, and the nested table (on the right) can vary in size. My problem is that when the...
61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
3
by: Terrence Brannon | last post by:
I don't know what Postgres considers a relation and had no intention of creating one when piping my schema to it... I always DROP TABLE before CREATE TABLE, so here are the ERRORS emitted when...
4
by: maricel | last post by:
I have the following base table structure - DDL: CREATE TABLE "ADMINISTRATOR"."T1" ( "C1" INTEGER NOT NULL ) IN "TEST_TS" ; ALTER TABLE "ADMINISTRATOR"."T1" ADD PRIMARY KEY
4
by: Simone Battagliero | last post by:
I wrote a program which inserts and finds elements in an hash table. Each element of the table is a dinamic list, which holds all elements having the same hash value (calculated by an int...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
76
MMcCarthy
by: MMcCarthy | last post by:
Normalisation is the term used to describe how you break a file down into tables to create a database. There are 3 or 4 major steps involved known as 1NF (First Normal Form), 2NF (Second Normal...
7
by: Kamal | last post by:
Hello all, I have a very simple html table with collapsible rows and sorting capabilities. The collapsible row is hidden with css rule (display:none). When one clicks in the left of the...
5
by: wugon.net | last post by:
question: db2 LUW V8 UNION ALL with table function month() have bad query performance Env: db2 LUW V8 + FP14 Problem : We have history data from 2005/01/01 ~ 2007/05/xx in single big...
5
by: jrod11 | last post by:
hi, I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.