slaskis
09-03-2002, 08:10 PM
I just can't see the error here:
$con = mysql_connect($db_host, $db_username, $db_password);
mysql_select_db($db_database);
$result = mysql_query("SELECT * FROM $db_table[0] WHERE poll_id = $id",$con);
while ($myrow = mysql_fetch_array($result, MYSQL_BOTH)) {
echo"working";
}
Anyone?
It's in php just so you know and i get the error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in d:\www\thespot\functions.inc.php on line 33
(line 33 is the while line)
$con = mysql_connect($db_host, $db_username, $db_password);
mysql_select_db($db_database);
$result = mysql_query("SELECT * FROM $db_table[0] WHERE poll_id = $id",$con);
while ($myrow = mysql_fetch_array($result, MYSQL_BOTH)) {
echo"working";
}
Anyone?
It's in php just so you know and i get the error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in d:\www\thespot\functions.inc.php on line 33
(line 33 is the while line)