Re: Quotes in querys

From: Date: Wed, 14 Jan 2009 21:44:55 +0000
Subject: Re: Quotes in querys
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-286361@lists.php.net to get a copy of this message
It is over head, but it caches the execution plan for multiple runs of the script. So different users with different data will use the same cached query on the database. Saving processing time. It also prevents SQL injection on the fly because you are indicating what data type each place holder will need to accept.
No, it's per session. http://dev.mysql.com/doc/refman/5.0/en/sql-syntax-prepared-statements.html The scope of a prepared statement is the client session within which it is created. Other clients cannot see it. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#286361) next »