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.
if (!function_exists('mysqli_result')) {
function mysqli_result($res, $row, $field=0) {
$res->data_seek($row);
$datarow = $res->fetch_array();
return $datarow[$field];
}
}
You can create this function.