Re: prepared statement

From: Date: Fri, 27 Jun 2008 00:41:04 +0000
Subject: Re: prepared statement
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-276022@lists.php.net to get a copy of this message
ctx2002 wrote: > 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? You have to use prepare/execute to get prepared statements. Query does a straight query (same as mysql_query or pg_query or whatever else you're using). -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#276022) next »