mysql_next_result — Prepares next result set from a multi query

int mysql_next_result(MYSQL * mysql);

Prepares next result set from a previous call to mysql_real_query() which can be retrieved by mysql_store_result() or mysql_use_result().

Parameters

mysql

A mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().

Return value

Zero on success, nonzero if an error occured.

[Note]

If a multi query contains errors the return value of mysql_errno/error() might change and there will be no result set available

See also

mysql_next_result()