Now, I know people have seen this mysql_fetch_array error before. I get this warning every time I have a while loop with a mysql_fetch_array in it.
This code worked on another server, but not on my production server. I have test the mysql query and it works. I has to be some problem with the mysql_fetch_arry function.
Does anyone know of any thing i'm not doing? please help. thanks.
-dan
here is my code:
$db = mysql_connect("localhost", "user", "pass");
mysql_select_db("dbName",$db);
$table = "tableName";
$query = "SELECT * FROM $table;";
$result = mysql_query($query,$db);
while ($myrow = mysql_fetch_array($result))
{
echo $myrow["fieldName"];
echo "<br>\n";
}