Jump to content

while loop giving me an error.


pocobueno1388

Recommended Posts

I have no idea why this while loop is giving me problems...I have used it this way many times before and have never had a problem with it.

Error:
[tt]Parse error: syntax error, unexpected ';' in /home/.leucorhinos/kernelgpf/dragon-dynasty.com/trade.php on line 65[/tt]

Code:

[code]
<?php

$incoming_sql = mysql_query("SELECT tradeID, sender, receiver, giving_type, giving, want_type, want FROM trades WHERE receiver='$sid'");

$num = mysql_num_rows($incoming_sql);

while ($i=0; $i<$num; $i++){

print<<<HERE

<td class=tstyle3 align='center'>$trade</td>
<td class=tstyle3 align='center'>{$itrade['sender']}</td>
<td class=tstyle3 align='center'>$want</td>
<td class=tstyle3 align='center'>Accept</td>
<td class=tstyle3 align='center'>Delete</td>
<tr>
HERE;
   
}

?>
[/code]

I appreciate all your help :)
Link to comment
https://forums.phpfreaks.com/topic/35589-while-loop-giving-me-an-error/
Share on other sites

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.