note 67388 deleted from function.pg-prepare by bjori

From: Date: Wed, 07 Jun 2006 16:55:27 +0000
Subject: note 67388 deleted from function.pg-prepare by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-113604@lists.php.net to get a copy of this message
Note Submitter: WARNING Reason: bad code ---- 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)");

« previous php.notes (#113604) next »