note 54239 added to function.pg-affected-rows

From: Date: Tue, 28 Jun 2005 08:45:06 +0000
Subject: note 54239 added to function.pg-affected-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-91063@lists.php.net to get a copy of this message
Note that when you submit several SQL queries, within one BEGIN;COMMIT; like this one : $SQLQuery = 'BEGIN;'; $SQLQuery.= 'INSERT INTO a (a,b) VALUES (1,2);'; $SQLQuery.= 'INSERT INTO b (ref_b,c) VALUES (2,5);'; $SQLQuery.= 'COMMIT;'; $HandleResults = pg_query($SQLQuery); echo(pg_affected_rows($HandleResults)); pg_affected_rows() will return 0 ---- Manual Page -- http://www.php.net/manual/en/function.pg-affected-rows.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54239 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54239&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54239&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54239&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54239&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54239&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54239&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54239&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#91063) next »