这个查询有什么问题
$yourfriendsbud = mysqli_query($con, "SELECT avatar,firstname,lastname,id
FROM people
INNER JOIN friends
ON
people.id=friends.zatrazio_id
WHERE status=0 AND dobio_id='$user_id' LIMIT 50");
while($row = mysqli_fetch_array($yourfriendsbud))
报告错误:
警告:mysqli_fetch_array()要求参数1为mysqli_result,第64行/home/u573639388/public_html/menu.php中给出布尔值
第64行是
while($row = mysqli_fetch_array($yourfriendsbud))
答案 0 :(得分:0)
这意味着您在两个表中都有一个id列。你必须在SELECT中更具体,使用SELECT people.id,avatar,firstname ...