Hi,
i have the following snippet of php that i wrote but cant figure out why it wont work all the variables have been set before hand.
Heres the PHP:
PHP Code:
echo "<table border='1'> <tr>"; if ($win_score > $lose_score) { echo " <th>Winner</th> <th>Loser</th> <th>Win Score</th> <th>Lose Score</th> </tr>";
while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['winner'] . "</td>"; echo "<td>" . $row['loser'] . "</td>"; echo "<td>" . $row['win_points'] . "</td>"; echo "<td>" . $row['lose_points'] . "</td>"; echo "</tr>"; } echo "</table>"; }
Last edited by toasty525; 12-03-2009 at 06:30 PM..
|