MY SQL & PHP help! No errors?

Joe Burnett

New member
What's wrong with this code? It produces the error...
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

$History = mysql_query("SELECT * FROM History");

echo "<table border='1'>
<tr>
<th>Name</th>
<th>Money</th>
<th>History</th>
</tr>";

while($History = mysql_fetch_array($History))
{
echo "<tr>";
echo "<td>" . $History['Name'] . "</td>";
echo "<td>" . $History['Money'] . "</td>";
echo "<td>" . $History['History'] . "</td>";
echo "</tr>";
}
echo "</table>";
 
Back
Top