snowdog Posted February 22, 2013 Share Posted February 22, 2013 Here is my error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/vhosts/bookawrs.com/httpdocs/lot.php on line 111 Here is part of the code giving me the problems $SQL = "SELECT * FROM lot WHERE franchise_id = '$franchise_id' and dealer_id = '$dealer_id' ORDER BY id ASC"; $result = mysql_query($SQL) or die(mysql_error());[/size][/font][/color] [color=#000000][font='Times New Roman'][size=1]while($run = mysql_fetch_array($result)) {[/size][/font][/color] [color=#000000][font='Times New Roman'][size=1]echo("<tr><td> $run['vinNumber'] </td><td> $run['carYear'] $nbsp; $run['carModel'] </td><td><img src='franchises/franchise_id_{$franchise_id}/lotImages/dealer_id_{$dealer_id}/lot_id_{$run['id']}/wheelFL.jpeg'></td></tr>");[/size][/font][/color] [color=#000000][font='Times New Roman'][size=1]} Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 22, 2013 Share Posted February 22, 2013 Pretty hard for us to see it too. Toggle the switch in the top left of the editor to post in plaintext. Quote Link to comment Share on other sites More sharing options...
waynew Posted February 22, 2013 Share Posted February 22, 2013 (edited) while($run = mysql_fetch_array($result)){ echo "<tr> <td>{$run['vinNumber']}</td> <td>{$run['carYear']} {$run['carModel']}</td> <td><img src='franchises/franchise_id_{$franchise_id}/lotImages/dealer_id_{$dealer_id}/lot_id_{$run['id']}/wheelFL.jpeg'></td> </tr>"; } should work. Edit: Formatting has become a challenge. Edited February 22, 2013 by waynewex Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 22, 2013 Share Posted February 22, 2013 Don't see any problem. Which is line 111? Post from 109-112 or so. Quote Link to comment Share on other sites More sharing options...
snowdog Posted February 22, 2013 Author Share Posted February 22, 2013 108 while($run = mysql_fetch_array($result)) 109 { 110 111 echo("<tr><td> $run['vinNumber'] </td><td> $run['carYear'] $nbsp; $run['carModel'] </td><td><img src='franchises/franchise_id_{$franchise_id}/lotImages/dealer_id_{$dealer_id}/lot_id_{$run['id']}/wheelFL.jpeg'></td></tr>"); 112 113 } Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 22, 2013 Share Posted February 22, 2013 Try wrapping all of the vars in {} like you did with the second half of them. I didn't realize the reply was not OP - OP, try doing it like was demonstrated Quote Link to comment Share on other sites More sharing options...
snowdog Posted February 22, 2013 Author Share Posted February 22, 2013 so stupid, the second I had it as $nbsp; always something stupid I over look. Thanks Everyone. 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.