mysqli_num_fields> <mysqli_multi_query
Last updated: Mon, 28 Dec 2009

mysqli_next_result

mysqli->next_result

(PHP 5)

mysqli->next_result — Preepara o próximo resultado de uma consulta múltipla

Descrição

bool mysqli_next_result ( object $link )

mysqli_next_result() prepara o próximo conjunto de resultados de uma chamada anterior a mysqli_multi_query() o qual pode ser obtido com mysqli_store_result() ou mysqli_use_result().

Return values

Retorna TRUE em caso de sucesso ou FALSE em falhas.

Exemplo

Veja mysqli_multi_query().



User Contributed Notes
mysqli_next_result
daghan dinc
20-Jul-2007 06:20
There is a reported bug in mysql:
http://bugs.mysql.com/bug.php?id=27544
which prevents you from  calling another select query or stored procedure after calling one stored procedure. The bug is reported as an odbc bug but it seems to be the same for php-mysql in windows platform. The given error message is:
"Commands out of sync; you can't run this command now"

In order to prevent this, you must call this function after every stored procedure call.

mysqli_num_fields> <mysqli_multi_query
Last updated: Mon, 28 Dec 2009