Code: Select all
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource[ /code ]
Here's the code that's generating the error:
[syntax="php" ]
<?php
$con = mysql_connect("*********","**********","**********");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$result = mysql_query("SELECT * FROM Users");
echo "<br />";
echo $result;
while($row = mysql_fetch_array($result))
{
echo $row['First_Name'] . " " . $row['Last_Name'];
echo "<br />";
}
mysql_close($con);
?>
[ /syntax]