General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 19th, 2004, 04:14 AM
aloo aloo is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 26 aloo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old March 19th, 2004, 08:05 AM
marymary marymary is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Belgium
Posts: 5 marymary User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by aloo
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


What do those brackets do there?

Reply With Quote
  #3  
Old March 24th, 2004, 01:02 PM
tobycloud tobycloud is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Near Albany NY
Posts: 27 tobycloud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to tobycloud Send a message via AIM to tobycloud
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.

Reply With Quote
  #4  
Old March 25th, 2004, 05:59 AM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 5
Send a message via MSN to Spongy
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

Reply With Quote
  #5  
Old March 25th, 2004, 06:26 AM
ChrisIves ChrisIves is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 8 ChrisIves User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Are you escaping the quotes inside the echo? Like this:


PHP Code:
echo "Hey heres some test... \"Now in Quotes WITHOUT ENDING THE ECHO!\" ... funs over"

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Parse error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT