Mysqli Loop

//object oriented
while($row = $result->fetch_assoc()) {
    var_dump($row);
}

//procedural
while($row = mysqli_fetch_assoc($result)) {
    var_dump($row);
}
Ricardo R.