$sql = "select * from user_search_detail where user_id in (430,452,443,452) order by user_id desc";
echo $sql;
$record = mysqli_query($conn,$sql);
这样一个查询为什么没有返回值;
在命令行下查询正常;
难道mysqli接口不支持where id in()字句?
echo $sql;
$record = mysqli_query($conn,$sql);
这样一个查询为什么没有返回值;
在命令行下查询正常;
难道mysqli接口不支持where id in()字句?
结果为1;
执行
while($row = mysqli_fetch_array($record))
{
}
打印错误信息:
Fatal error: Cannot use object of type mysqli_result as array in
说明$record是数组,而不是资源类型。echo gettype($record)试试呢