note 69904 added to function.pg-query

From: Date: Tue, 26 Sep 2006 00:36:34 +0000
Subject: note 69904 added to function.pg-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-117662@lists.php.net to get a copy of this message
Everyone knows how to select. How about an example of an insert that includes a sequence update as in "insert into table (id,name,..) values(nextval('table_idx_seq'), '$name',..)? I am using pg_exec() and am getting a syntax error at '$name. ---- Server IP: 64.71.164.2 Probable Submitter: 70.180.132.169 ---- Manual Page -- http://www.php.net/manual/en/function.pg-query.php Edit -- https://master.php.net/note/edit/69904 Del: integrated -- https://master.php.net/note/delete/69904/integrated Del: useless -- https://master.php.net/note/delete/69904/useless Del: bad code -- https://master.php.net/note/delete/69904/bad+code Del: spam -- https://master.php.net/note/delete/69904/spam Del: non-english -- https://master.php.net/note/delete/69904/non-english Del: in docs -- https://master.php.net/note/delete/69904/in+docs Del: other reasons-- https://master.php.net/note/delete/69904 Reject -- https://master.php.net/note/reject/69904 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117662) next »