|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Parse error
hi
im new to this so, hope some can help. i keep getting a parse error i can't work out what im doing wrong. Parse error: parse error, expecting `','' or `';'' in /home/public_html/product.php on line 35 the line that it is refering to is below <tr><td><width="16%" height="25"><img src= $row['productID']}.jpg height=120 width=90><font face="arial" size="1.5" color="black">$row['title']} </font></td> Thanks |
|
#2
|
|||
|
|||
|
Quote:
What do those brackets do there? |
|
#3
|
|||
|
|||
|
I assume you're using echo. In which case define these before your echo:
$prod_id = $row['productID']; $title = $row['title']; Then change line 35 to: <tr><td><width="16%" height="25"><img src="$prod_id.jpg height=120 width=90><font face="arial" size="1.5" color="black"> $title </font></td> If I assumed wrong let me know what you ARE doing. |
|
#4
|
||||
|
||||
|
In most cases this error means there is something missing in the line before the line which is returned. Check line 34 and use tobyclouds solution. It's a lot better to see and less comlicated. Easier to modify too.
Hope it works, Chhers
__________________
Work to live, don't live to work |
|
#5
|
|||
|
|||
|
Are you escaping the quotes inside the echo? Like this:
PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Parse error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|