> Supplied argument is not a valid MySQL result resource. This is absolutely correct because after $result = mysql_query("SELECT * FROM SOME_TABLE") || die(mysql_error()); variable $result contains result of boolean "OR" operation which in your case is TRUE or 1 in order to get valid MySQL result you should use $result = mysql_query("SELECT * FROM SOME_TABLE"); Best regards Sasha sasha@IslandJeep.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php