note 103869 rejected from mysqli.query by danbrown

From: Date: Sat, 07 May 2011 21:32:31 +0000
Subject: note 103869 rejected from mysqli.query by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179531@lists.php.net to get a copy of this message
Note Submitter: damien at audiodef dot com ---- Why does this perform an insert twice? <?php $mysqli = new mysqli("localhost", "user", "pass", "db"); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } if ($mysqli->query("CALL SomeStoredProcThatInserts('someTextData')") === TRUE) { printf("Success!"); } $mysqli->close(); ?> It doesn't matter whether the query is "insert into table(col) values('someval')" or calls a stored proc. I always get the insert twice.

« previous php.notes (#179531) next »