mysql_fetch_array(): supplied argument is not a valid MySQL result resource,该怎么解决
程序员文章站
2022-04-08 20:36:44
...
mysql_fetch_array(): supplied argument is not a valid MySQL result resource
mysql_connect("localhost","root","1");
$query="select id from computer where user ='test2'";
$result=mysql_query($query);
echo "test2 使用了
";
while($row = mysql_fetch_array($result))
{
echo $row['id']."开始时间".$row[starttime]."
";
}
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\myapacheweb\test\self_info.php on line 7
------解决方案--------------------
没有选择数据库
mysql_select_db(表名)
------解决方案--------------------
mysql_select_db
mysql_connect("localhost","root","1");
$query="select id from computer where user ='test2'";
$result=mysql_query($query);
echo "test2 使用了
";
while($row = mysql_fetch_array($result))
{
echo $row['id']."开始时间".$row[starttime]."
";
}
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\myapacheweb\test\self_info.php on line 7
------解决方案--------------------
没有选择数据库
mysql_select_db(表名)
------解决方案--------------------
mysql_select_db
相关文章
相关视频
推荐阅读
-
mysql_fetch_row(): supplied argument is not a valid MySQL result resource,何人能解?该如何解决
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource,该如何处理
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource....
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource....
-
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result res,该怎么解决
-
php出现Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result解决办法
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource,该怎么解决
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource
-
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resour,该怎么解决
-
mysql_fetch_array(): supplied argument is not a valid MySQL result resource解决方法