Jump to content

Help with Error - Can't see it


snowdog

Recommended Posts

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

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.

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 }

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.