int mysql_stmt_next_result(MYSQL_STMT * stmt);
stmt - a statement handle, which was previously allocated by mysql_stmt_init().
stmt