gpt4 book ai didi

php - mysql函数问题

转载 作者:太空宇宙 更新时间:2023-11-03 11:14:26 25 4
gpt4 key购买 nike

这个问题已经存在:





Warning: mysql_fetch_* expects parameter 1 to be resource, boolean given error [duplicate]

8年前关闭。



 include('includes/config.php');

$sqld = mysql_query("SELECT * FROM users WHERE email='chamay@gmail.com' AND password='google'");
$num= mysql_num_rows($sqld);
echo $num;

此脚本无法正常工作并显示此错误;-

警告:mysql_num_rows() 期望参数 1 是资源, bool 值在第 12 行的 D:\wamp\www\test.php 中给出

最佳答案

mysql_query正在返回 false,因为您的查询中存在某种错误。使用 mysql_error可以让你最后报告的错误。

关于php - mysql函数问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6142035/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com