From: johnw at sussex dot ac dot uk Operating system: PHP version: Irrelevant PHP Bug Type: Feature/Change Request Bug description: Add 'dbx_num_affected_rows' function
Description: ------------ It would be very useful (to me at least) if the dbx module included a function for returning the number of rows affected by an INSERT, UPDATE, or DELETE statement. Implementation suggestion: the function DBX_QUERY could call the relevant database-specific function after an update/insert/delete and save the result in the link identifier object. A new function DBX_NUM_AFFECTED_ROWS would retrieve this saved value from the link identifier. Possibly a select query would cause the 'num_affected_rows' value to be set to 0, for neatness. -- Edit bug report at http://bugs.php.net/?id=28526&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28526&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28526&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28526&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28526&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28526&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28526&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28526&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28526&r=support Expected behavior: http://bugs.php.net/fix.php?id=28526&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28526&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28526&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28526&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28526&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28526&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28526&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28526&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28526&r=float