Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in e:\webpage\webop\logcheck.php on line 10
wrong
...全文
864打赏收藏
MYSQL数据库访问问题!!!!!!(急)
调用如下语句都出错,不知道为什么!用的是PHP5 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in e:\webpage\webop\logcheck.php on line 10 wrong
$db=@mysql_pconnect("localhost","root","") or die("Failure in connecting the server!");
@mysql_select_db("web_spider",$db) or die("Failure in connecting the database!");
$result=mysql_query("select * from web_spider.spider_users where name='".$name."' pass='".$passwords."'");
是在调用这句时出错。
if ($myrow=mysql_fetch_array("$result")){