Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resour,该怎么解决
程序员文章站
2022-04-30 20:36:26
...
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resour
mysql_connect("localhost","root","liubing");
mysql_select_db("text");
$sql=@"seclet * from 'bing2'" or die("失败");
if($sql) echo "成功";
$query=mysql_query($sql);
echo $query;
$rsa=mysql_fetch_row($query);
print_r ($rsa);
?>
报错内容:Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in E:\AppServ\www\bingbing\lianxi\aa.php on line 16
求回复
------解决方案--------------------
$sql=@"select * from bing2" or die("失败");
$query=mysql_query($sql) or die(mysql_error());
这样试试还报错吗
mysql_connect("localhost","root","liubing");
mysql_select_db("text");
$sql=@"seclet * from 'bing2'" or die("失败");
if($sql) echo "成功";
$query=mysql_query($sql);
echo $query;
$rsa=mysql_fetch_row($query);
print_r ($rsa);
?>
报错内容:Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in E:\AppServ\www\bingbing\lianxi\aa.php on line 16
求回复
------解决方案--------------------
$sql=@"select * from bing2" or die("失败");
$query=mysql_query($sql) or die(mysql_error());
这样试试还报错吗
相关文章
相关视频
下一篇: centos7 安装nginx
推荐阅读
-
mysql_fetch_row(): supplied argument is not a valid MySQL result resource,何人能解?该如何解决
-
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result res,该怎么解决
-
php出现Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result解决办法
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource,该怎么解决
-
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resour,该怎么解决
-
php出现Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result解决办法
-
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resour,该怎么解决
-
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resour,该怎么解决
-
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result res,该怎么解决
-
php出现Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result解决办法