I have got a drop down menu that I am using a table to populate, which works fine locally, but not when I upload it.
The error I get is...
mysql_fetch_array(): supplied argument is not a valid MySQL result resource
and the coding i'm using is....
<?php
$sql = "SELECT * FROM groups";
$rs = mysql_query($sql);
while($row = mysql_fetch_array($rs))
{
echo "<option value=\"".$row['GROUP_ID']."\">".$row['GROUP_NAME']."\n ";
}
?>
I exported the table from my local host so it would be the same on the website and checked that the tables and fields have the same case.
Any help would be great.
Thanks,
George