Re: prepared statement

From: Date: Thu, 26 Jun 2008 21:31:12 +0000
Subject: Re: prepared statement
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-276019@lists.php.net to get a copy of this message
thanks for answering my question. I have checked PHP PDO doc. PDO:: query() can send a query to server. my question is, does PDO:: query() generates prepared statement automatically? or I have to explicitly call PDO:: prepare() to use prepared statement? for example: PDO:: query("select name from contact where id = 1") will send a raw SQL statement to server, and server also treat that query as a raw SQL statement. regards -- View this message in context: http://www.nabble.com/prepared-statement-tp18123270p18142905.html Sent from the PHP - General mailing list archive at Nabble.com.

« previous php.general (#276019) next »