colleyboy Posted September 18, 2010 Share Posted September 18, 2010 Easy one i hope... Heres my array: echo "<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=100% BORDER=0>"; echo "<TR />"; echo "<TD WIDTH=30% VALIGN=TOP />"; echo " <IMG SRC=$row['CarPrice]/> "; <----- THIS IS LINE 66 THAT THE ERROR APPEARS ON!! echo "<br />"; echo "</TD>"; echo "<TD WIDTH=10 VALIGN=TOP />"; echo " "; echo "</TD>"; echo "<TD />"; echo "<font size=3 face=arial /><B >"; echo $row['CarPrice']; echo "</B><font size=2 face=arial />"; echo "<br />"; echo $row['CarTitle']; echo "<br />"; Have i encased the $row['photo'] properly? Quote Link to comment Share on other sites More sharing options...
PaulRyan Posted September 18, 2010 Share Posted September 18, 2010 Change line 66 from... echo " <IMG SRC=$row['CarPrice]/> "; To... echo " <IMG SRC=$row['CarPrice']/> "; Regards, Paul. Quote Link to comment Share on other sites More sharing options...
colleyboy Posted September 18, 2010 Author Share Posted September 18, 2010 Im getting this error come back *same as before* Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/wormste1/public_html/tilburywebdesign/shop/FTPServers/barryottley/showroom.php on line 66 Quote Link to comment Share on other sites More sharing options...
PaulRyan Posted September 18, 2010 Share Posted September 18, 2010 Sorry my bad, mis-read the situation. change line 66 to... echo " <IMG SRC=".$row['CarPrice']." /> "; Paul. Quote Link to comment Share on other sites More sharing options...
colleyboy Posted September 18, 2010 Author Share Posted September 18, 2010 Excellent but... the image is in the "images" folder. how do i change this to reflect that? Ian Quote Link to comment Share on other sites More sharing options...
PaulRyan Posted September 18, 2010 Share Posted September 18, 2010 If you images directory is in the same directory as the script use echo " <IMG SRC='images/".$row['CarPrice']."' /> "; Tell me how this goes Paul. Quote Link to comment Share on other sites More sharing options...
colleyboy Posted September 18, 2010 Author Share Posted September 18, 2010 awesome would be an understatement... BRILLIANT IS THE WORD!!! Cheers m8! Quote Link to comment Share on other sites More sharing options...
PaulRyan Posted September 18, 2010 Share Posted September 18, 2010 No problem Ian, glad its working for you. Need anything else just post back here Regards, Paul. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.