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
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.

Edited by waynewex
Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.