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.