Documentation Home
MySQL PHP API
Download this Manual
PDF (US Ltr) - 2.4Mb
PDF (A4) - 2.4Mb


MySQL PHP API  /  ...  /  mysqli_stmt::next_result, mysqli_stmt_next_result

3.9.20 mysqli_stmt::next_result, mysqli_stmt_next_result

Copyright 1997-2021 the PHP Documentation Group.

  • mysqli_stmt::next_result

    mysqli_stmt_next_result

    Reads the next result from a multiple query

Description

Object oriented style

public bool mysqli_stmt::next_result();

Procedural style:

bool mysqli_stmt_next_result(mysqli_stmt statement);

Reads the next result from a multiple query.

Parameters

stmt

Procedural style only: A statement identifier returned by mysqli_stmt_init.

Return Values

Returns true on success or false on failure.

Errors/Exceptions

Emits an E_STRICT level error if a result set does not exist, and suggests using mysqli_stmt::more_results in these cases, before calling mysqli_stmt::next_result.

MySQL Native Driver Only

Available only with mysqlnd.

See Also

mysqli_stmt::more_results
mysqli::multi_query