Warning: mysql_fetch_array(): supplied argument (ERROR)
Posted: Mon Jul 21, 2003 4:01 pm
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/edited_location_of_files/index_welcome.php on line 6
This is very strange as It works just fine at home on my Win2K server setup, but when I upload my code to the Redhat linux server setup I get this error. I CAN see a lot of my database stuff, but not some of it and the stuff I can't see all gives this error.
Does anyone have any suggestions as to what it might be?
Here is the code it's erroring on:
Thanks LOADS in advance...
Rob
This is very strange as It works just fine at home on my Win2K server setup, but when I upload my code to the Redhat linux server setup I get this error. I CAN see a lot of my database stuff, but not some of it and the stuff I can't see all gives this error.
Does anyone have any suggestions as to what it might be?
Here is the code it's erroring on:
Code: Select all
<?
print " <td bgcolor="$hBGcolor" valign="top" colspan="2">";
print " <div align="$hAlignment"><font size="$hSize" face="$hFont"><b><font color="$hColor">";
$content = mysql_db_query($dbname, "SELECT * FROM welcome_message");
$Xcontent = mysql_fetch_array($content);
$subject = $Xcontent["subject"];
$message = $Xcontent["message"];
Print "$subject";
print " </font></b></font></div>";
print "</td>";
print "</tr>";
print "<tr>";
print "<td valign="top">";
Print "$message";
print "</td>";
?>Rob