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]} Link to comment https://forums.phpfreaks.com/topic/274832-help-with-error-cant-see-it/ 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. Link to comment https://forums.phpfreaks.com/topic/274832-help-with-error-cant-see-it/#findComment-1414238 Share on other sites More sharing options...
waynew Posted February 22, 2013 Share Posted February 22, 2013 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. Link to comment https://forums.phpfreaks.com/topic/274832-help-with-error-cant-see-it/#findComment-1414245 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. Link to comment https://forums.phpfreaks.com/topic/274832-help-with-error-cant-see-it/#findComment-1414246 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 } Link to comment https://forums.phpfreaks.com/topic/274832-help-with-error-cant-see-it/#findComment-1414248 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 Link to comment https://forums.phpfreaks.com/topic/274832-help-with-error-cant-see-it/#findComment-1414251 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. Link to comment https://forums.phpfreaks.com/topic/274832-help-with-error-cant-see-it/#findComment-1414264 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.