首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resour

2012-09-27 
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resour?phpmysql_connect(

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resour
<?php
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());

这样试试还报错吗

热点排行