$result = mysql_query($query); if ($result == NULL) { print $query; return false; }