Re: DB class ( Prepare Memory )
| From: | Justin Patrin | Date: | Thu, 12 Oct 2006 03:05:29 +0000 |
| Subject: | Re: DB class ( Prepare Memory ) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-44457@lists.php.net to get a copy of this message | ||
On 10/11/06, Onur Yerlikaya <onurphp@gmail.com> wrote:
Hi,
I think about sth today. Can we give a name to prepared sql for PEAR DB class ?
----------------------------------------------------------
/**
* Temporary Variable
*/
var $tmp;
----------------------------------------------------------
$db->prepare($sampleSqlQuery,$name);
when i call this function $sampleSqlQuery located at $this->tmp[$name]
= $sampleSqlQuery
and prepared sql codes can be access everytime?
Yes, just do it yourself.
$this->tmp[$name] =& $db->prepare($sql);
--
Justin Patrin