最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Warning: mysql_fetch_array():
时间:2022-07-02 10:37:32 编辑:袖梨 来源:一聚教程网
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
$connect=mysql_connect("localhost","root","123") or die("无法连接数据库".mysql_error());
mysql_select_db("cmstest") or die("无法选择数据库".mysql_errno());
$sql="select * from article where pid=1";
$result=mysql_query($sql,$connect) or die("无法查询sql语句".mysql_error());
$nums=mysql_num_rows($result);
echo "nums is:".$nums;
while($res=mysql_fetch_array($result)){
echo $res[0];
}
原来是$result重复了.
相关文章
- 企业微信如何进行直播 03-27
- 微博网页版-在线使用入口一键直达 03-27
- 咸鱼商品被下架了怎么办 03-27
- 铁路12306官网登录入口-铁路12306官网登录失败怎么办 03-27
- 智联招聘网页版怎么登录 03-27
- 网站为什么会降权 03-27