note 67388 added to function.pg-prepare

From: Date: Wed, 07 Jun 2006 16:50:54 +0000
Subject: note 67388 added to function.pg-prepare
Groups: php.notes 
Request: Send a blank email to php-notes+get-113603@lists.php.net to get a copy of this message
place holders such as $1 can only be used in specific places. <angry>thanks a lot for NOT including this in the documentation</angry> as far as i can tell they cannot be used for inserting column names. for example this DOES NOT WORK: pg_prepare($conn, "name", "INSERT INTO Users ($1) VALUES ($2)"); this DOES WORK: pg_prepare($conn, "name", INSERT INTO Users (UserName) VALUES ($1)"); ---- Server IP: 216.194.113.175 Probable Submitter: 67.142.130.19 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.pg-prepare.php Edit -- http://master.php.net/note/edit/67388 Del: integrated -- http://master.php.net/note/delete/67388/integrated Del: useless -- http://master.php.net/note/delete/67388/useless Del: bad code -- http://master.php.net/note/delete/67388/bad+code Del: spam -- http://master.php.net/note/delete/67388/spam Del: non-english -- http://master.php.net/note/delete/67388/non-english Del: in docs -- http://master.php.net/note/delete/67388/in+docs Del: other reasons-- http://master.php.net/note/delete/67388 Reject -- http://master.php.net/note/reject/67388 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#113603) next »