mysql_fetch_array(): supplied argument is not a valid MySQL result resource解决方法
2012-04-07
mysql_fetch_array(): supplied argument is not a valid MySQL result resourceWarning: mysql_fetch_arr
mysql_fetch_array(): supplied argument is not a valid MySQL result resource Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\myapacheweb\test\self_info.php on line 7
PHP code
mysql_connect("localhost","root","1"); $query="select id from computer where user ='test2'"; $result=mysql_query($query); echo "test2 使用了<br>"; while($row = mysql_fetch_array($result)) { echo $row['id']."开始时间".$row[starttime]."<br>"; }
求助啊
[解决办法] $query="select id from computer where user ='test2'";