Home >Backend Development >PHP Tutorial >为什么小弟我的mysql_fetch_array()语句不能正常输出呢
为什么我的mysql_fetch_array()语句不能正常输出呢?
[email protected]_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
SELETE * FROM test
SELECT * FROM test