mysqli::next_result

mysqli_next_result

(PHP 5, PHP 7, PHP 8)

mysqli::next_result -- mysqli_next_resultPrepare next result from multi_query

Description

Object-oriented style

public mysqli::next_result(): bool

Procedural style

mysqli_next_result(mysqli $mysql): bool

Prepares next result set from a previous call to mysqli_multi_query() which can be retrieved by mysqli_store_result() or mysqli_use_result().

Parameters

mysql

Procedural style only: A mysqli object returned by mysqli_connect() or mysqli_init()

Return Values

Returns true on success or false on failure. Also returns false if the next statement resulted in an error, unlike mysqli_more_results().

Examples

See mysqli_multi_query().

See Also