mysqli::next_result

mysqli_next_result

(PHP 5, PHP 7, PHP 8)

mysqli::next_result -- mysqli_next_resultPrepare next result from multi_query

Descrizione

Stile orientato agli oggetti

public mysqli::next_result(): bool

Stile procedurale

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().

Elenco dei parametri

link

Solo nello stile procedurale: un identificatore restituito da mysqli_connect() o mysqli_init()

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento. Also returns false if the next statement resulted in an error, unlike mysqli_more_results().

Errori/Eccezioni

If mysqli error reporting is enabled (MYSQLI_REPORT_ERROR) and the requested operation fails, a warning is generated. If, in addition, the mode is set to MYSQLI_REPORT_STRICT, a mysqli_sql_exception is thrown instead.

Esempi

See mysqli_multi_query().

Vedere anche: