ÄãÊÔͼÓÃÒ»¸öֵΪ 0 µÄ½á¹û×ÊÔ´ºÅ¡£0 ±íʾÄãµÄ²éѯÓÉÓÚijÔÒòʧ°ÜÁË£¬ÐèÒªÔÚÌá½»²éѯ֮ºóºÍÔÚʹÓ÷µ»Ø½á¹û×ÊÔ´ºÅ֮ǰ¼ì²é´íÎó¡£ÕýÈ·µÄ·½·¨ÊÇÓÃÀàËÆÈçϵĴúÂ룺
<?php
$result = mysql_query("SELECT * FROM tables_priv");
if (!$result) {
echo mysql_error();
exit;
}
?>
»òÕß
<?php
$result = mysql_query("SELECT * FROM tables_priv")
or die("Bad query: " . mysql_error());
?>