Hi, I'm having problems with PHP and Mysql
I get this message
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in *** on line 95
I've used mysql_fetch_array() before and its worked
Does anyone know the problem?
Thanks
PHP:
$dbname = "***";
$dbpassword = "***";
$dbserver = "localhost";
$db = "***";
mysql_connect($dbserver,$dbname,$dbpassword);
mysql_select_db($db);
$query = mysql_query("SELECT * FROM `$t` WHERE `id`='$id'");
while($output = mysql_fetch_array($query)) {
**do stuff
}
I get this message
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in *** on line 95
I've used mysql_fetch_array() before and its worked
Does anyone know the problem?
Thanks