I have users who add rows into db. Right above their picture I show the count of the rows they added. Pretty simple and it works fine. The problem is that I also get error which doesn't make sense:
mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in...
while($row = mysqli_fetch_array($query, MYSQLI_ASSOC)){
$result = mysqli_query($con,"SELECT * FROM my_table WHERE user_ids = ".
$row['user_id']."");
$reput = mysqli_num_rows($result);
}
$query
works fine too, any idea how to satisfy the error?