Re: prepared statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux