PHP mysqli_next_result() Function
Execute multiple queries against the database. Use the mysqli_next_result() function to prepare the next result set:
";
}
}
} while (mysqli_next_result($con));
}
mysqli_close($con);
?>
Definition and Usage
The mysqli_next_result() function prepares the next result set for mysqli_multi_query() .
Syntax
mysqli_next_result(
connection
)
;
| Parameters | Description |
|---|---|
| connection | Required. Specifies the MySQL connection to use. |
Technical Details
| Return Value: | Returns TRUE on success, FALSE on failure. |
|---|---|
| PHP Version: | 5+ |
PHP MySQLi Reference Manual