#45342 [NEW]: helpful to list INSERT as a mysql_query() type not returning result set

From: Date: Mon, 23 Jun 2008 23:05:37 +0000
Subject: #45342 [NEW]: helpful to list INSERT as a mysql_query() type not returning result set
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-901@lists.php.net to get a copy of this message
From: sdewey at post dot harvard dot edu Operating system: n/a PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: helpful to list INSERT as a mysql_query() type not returning result set Description: ------------ On the manual page for mysql_query(), it would probably be helpful for some users if you updated the following sentence: <<<For other type of SQL statements, UPDATE, DELETE, DROP, etc, mysql_query() returns TRUE on success or FALSE on error.>>> To include "INSERT" in the list. INSERT is one of the most common queries not producing a result set (i.e. simply returning TRUE or FALSE), and this would make things clearer to newer users wondering about the return value of mysql_query() called with such a statement. Reproduce code: --------------- n/a, see above Expected result: ---------------- n/a, see above Actual result: -------------- n/a, see above -- Edit bug report at http://bugs.php.net/?id=45342&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45342&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45342&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45342&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45342&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45342&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45342&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45342&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45342&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45342&r=support Expected behavior: http://bugs.php.net/fix.php?id=45342&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45342&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45342&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45342&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45342&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45342&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45342&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45342&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45342&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45342&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45342&r=mysqlcfg

« previous php.doc.bugs (#901) next »