note 93025 deleted from mysqli.get-warnings by danbrown

From: Date: Wed, 19 Aug 2009 22:03:03 +0000
Subject: note 93025 deleted from mysqli.get-warnings by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159667@lists.php.net to get a copy of this message
Note Submitter: marcus at synchromedia dot co dot uk ---- There is a simple way of traversing the warnings: $r = mysqli_query($db, "INSERT INTO blah SET z = '1'"); if (mysqli_warning_count($db)) { $e = mysqli_get_warnings($db); do { echo "Warning: $e->errno: $e->message\n"; } while ($e->next()); }

« previous php.notes (#159667) next »