我尝试计算查询中的行数,但收到错误消息:
致命错误:在
中调用未定义的函数Âmysqli_num_rows()我的代码是:
$query2 = "SELECT `vraag` FROM `log` WHERE `nam` = '3' AND `status` = '0' LIMIT 1";
$sql2 = mysqli_query($con,$query2) or die("could not perform query");
$record2 = mysqli_fetch_assoc($sql2);
$aantal = mysqli_num_rows($sql2);
有人知道这段代码有什么问题吗? 提前致谢。