ID:               37567
 Updated by:       [EMAIL PROTECTED]
 Reported By:      alexander dot over at koeln dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         MySQLi related
 Operating System: Suse 9.3
 PHP Version:      5.1.4
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Works just fine. Check your server.


Previous Comments:
------------------------------------------------------------------------

[2006-05-23 22:08:16] alexander dot over at koeln dot de

Description:
------------
Sorry for that english :D

When trying to use the multi_query functions from mysqli adapter, it
always fails with an syntax error if more than one sql statement is
given to the function/object.

Reproduce code:
---------------
$mysqli = new mysqli('localhost', 'root', '', 'test');

$query  = "SELECT CURRENT_USER();";
$query .= "SELECT CURRENT_USER();";

if ($mysqli->multi_query($query)) {
   do {
        if ($result = $mysqli->store_result()) {
           while ($row = $result->fetch_row()) {
               printf("%s\n", $row[0]);
           }
           $result->close();
        }
   } while ($mysqli->next_result());
} else {
        echo $mysqli->error;
}

$mysqli->close();

Expected result:
----------------
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Actual result:
--------------
Fehler in der Syntax bei ';SELECT CURRENT_USER()' in Zeile 1.

(German Locale)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37567&edit=1

Reply via email to