PHP与SQL的错误问题
<?functiondb_query($qry_str){returnmysql_query($qry_str);}functiondb_num_rows($res){r...
<?
function db_query($qry_str) {return mysql_query($qry_str);}
function db_num_rows($res) {return mysql_num_rows($res);}
function db_fetch_array($res) {return mysql_fetch_array($res);}
function db_fetch_object($res) {return mysql_fetch_object($res);}
function db_data_seek($res,$num) {return mysql_data_seek($res,$num);}
function db_insert_id($res) {return mysql_insert_id($res);}
?>
代码在这里,报警 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\sj\four\db_fun.php on line 5 展开
function db_query($qry_str) {return mysql_query($qry_str);}
function db_num_rows($res) {return mysql_num_rows($res);}
function db_fetch_array($res) {return mysql_fetch_array($res);}
function db_fetch_object($res) {return mysql_fetch_object($res);}
function db_data_seek($res,$num) {return mysql_data_seek($res,$num);}
function db_insert_id($res) {return mysql_insert_id($res);}
?>
代码在这里,报警 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\sj\four\db_fun.php on line 5 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询