mysqli query results to show all rows

Just replace it with mysqli_fetch_array or mysqli_result::fetch_array 🙂

while( $row = $result->fetch_array() )
{
    echo $row['FirstName'] . " " . $row['LastName'];
    echo "<br />";
}

Almost all mysql_* functions have a corresponding mysqli_* function.

Leave a Comment