Fatal error: Call to undefined function mysqli_result()

Don’t use this kind of code. It’s highly inefficient. Use mysqli_fetch_assoc() instead:

while($row = mysqli_fetch_assoc($result)) {
   $id = $row['ID'];
   $name = $row['name']; 
   etc..
}

One SINGLE database operation, rather than the 3+ you’re trying to do.

Leave a Comment