note 109305 added to function.pg-update
| From: | legacycrono | Date: | Wed, 04 Jul 2012 16:26:39 +0000 |
| Subject: | note 109305 added to function.pg-update | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-189029@lists.php.net to get a copy of this message | ||
@jhooks: I believe that is expected, the query won't be executed unless you explicitly specify
the PGSQL_DML_EXEC option.
So, to execute and get the resulting query string, you have to combine both options. E.g:
<?php
$querystr = pg_update($db, 'post_log', $_POST, $data, PGSQL_DML_EXEC |
PGSQL_DML_STRING);
?>
----
Server IP: 208.69.120.55
Probable Submitter: 32.104.18.240
----
Manual Page -- http://www.php.net/manual/en/function.pg-update.php
Edit -- https://master.php.net/note/edit/109305
Del: integrated -- https://master.php.net/note/delete/109305/integrated
Del: useless -- https://master.php.net/note/delete/109305/useless
Del: bad code -- https://master.php.net/note/delete/109305/bad+code
Del: spam -- https://master.php.net/note/delete/109305/spam
Del: non-english -- https://master.php.net/note/delete/109305/non-english
Del: in docs -- https://master.php.net/note/delete/109305/in+docs
Del: other reasons-- https://master.php.net/note/delete/109305
Reject -- https://master.php.net/note/reject/109305
Search -- https://master.php.net/manage/user-notes.php