It means the query failed for whatever reason.
Use the mysql_error function to see specifically why.
Replace die() with some other logic in a production environment, of course.PHP Code:$result = mysql_query($sql, $db);
if (!is_resource($result))
{
die(mysql_error());
}




Reply With Quote