so only benefit for use prepared statement in Web environment is to prevent
SQL 
injection?

regards
 

chris smith-9 wrote:
> 
> ctx2002 wrote:
>> 
>> I mean for each different requests/connection how can i use same prepared
>> statements object that was 
>> generated by PDO lib/mysql Server.
> 
> You can't.
> 
> Resources/connections are done per request and can't be shared - it's
> done that way by design.
> 
> -- 
> Postgresql & php tutorials
> http://www.designmagick.com/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/prepared-statement-tp18123270p18124946.html
Sent from the PHP - General mailing list archive at Nabble.com.


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

Reply via email to