Doc #60004 [NEW]: Working of mysql_affected_rows() after SELECT

From: Date: Wed, 29 Jun 2011 04:11:16 +0000
Subject: Doc #60004 [NEW]: Working of mysql_affected_rows() after SELECT
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6755@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Working of mysql_affected_rows() after SELECT Description: ------------ --- From manual page: http://www.php.net/function.mysql-affected-rows%23Description --- There are nothing about calling mysql_affected_rows() after SELECT. It is logical that it would return 0 because the number of affected rows is zero or the number of affected rows by previous query. However in practice it returns the number of rows returned by a SELECT! For it is said in MySQL manual that "For SELECT statements, mysql_affected_rows() works like mysql_num_rows()" (http://dev.mysql.com/doc/refman/5.0/es/mysql-affected-rows.html). This feature should be noted in manual. -- Edit bug report at https://bugs.php.net/bug.php?id=60004&edit=1 -- Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=60004&r=trysnapshot52 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60004&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60004&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60004&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60004&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60004&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60004&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60004&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60004&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60004&r=support Expected behavior: https://bugs.php.net/fix.php?id=60004&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60004&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60004&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60004&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60004&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60004&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60004&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60004&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60004&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60004&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60004&r=mysqlcfg

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