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.
More Related Contents:
- How do I iterate over the results in a MySQLi result set?
- mysqli_fetch_array while loop columns
- php nested while loop. Inner loop works only once [closed]
- About how does mysqli_query() Function and mysqli_fetch_array($result) work?
- Using while in for loop (PHP) [closed]
- Can I mix MySQL APIs in PHP?
- How to change mysql to mysqli?
- Best way to INSERT many values in mysqli?
- Call to a member function bind_param() on a non-object [duplicate]
- MySQLi prepared statements error reporting [duplicate]
- How can I get an unknown username given an ID?
- Build SELECT query with dynamic number of LIKE conditions as a mysqli prepared statement
- mysqli_query() expects parameter 1 to be mysqli, object given
- MySQLi count(*) always returns 1
- Warning: mysqli_connect(): (HY000/2002): No such file or directory
- php/mysql with multiple queries
- Use one bind_param() with variable number of input vars
- Using Mysqli bind_param with date and time columns?
- PHP UPDATE prepared statement
- Inserting data to table (mysqli insert) [duplicate]
- SELECT * FROM in MySQLi
- How to populate HTML dropdown list with values from database
- Mysqli fetch_assoc vs fetch_array
- Mysqli throws “Warning: mysqli_stmt_bind_param() expects parameter 1 to be mysqli_stmt, boolean given” [duplicate]
- Is mysqli extension enabled in this php configuration?
- Unknown database error in PHP but it exists in PHPMyAdmin
- Can I blindly replace all mysql_ functions with mysqli_?
- Is mysqli_real_escape_string safe?
- Call to undefined function mysqli_result::num_rows()
- Strange problem with the length of the field gotten from database [duplicate]