为什么我的mysql_fetch_array()语句不能正常输出呢?
<?php
$conn=@mysql_connect("localhost","root","") or die ("链接错误");
mysql_select_db("newdb",$conn);
$sql="SELETE * FROM test";
$query=mysql_query($sql,$conn);
$array=mysql_fetch_array($query);
print_r($array);
?>
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\WAMP5\wamp\www\test\file.php on line 6
MySQL php
[解决办法]
$sql="SELECT * FROM test";
[解决办法]
supplied argument is not a valid MySQL result resource 参数不是一个MYSQL结果资源
那就是你的SQL语句执行有问题
[解决办法]
SELETE * FROM test
SELECT * FROM test