Re: [PHP] MySQL and SESSIONs

2007-10-08 Thread mike
On 10/8/07, Philip Thompson <[EMAIL PROTECTED]> wrote: > Hi. This may not be best practice, but I think it's great to use - > especially since I can use multiple functions with the same database > connection w/o having to send the db link/resource. Store the connection in > the GLOBALS variable - t

Re: [PHP] MySQL and SESSIONs

2007-10-08 Thread Philip Thompson
day, October 05, 2007 4:31 PM > > To: Stefano Esposito > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] MySQL and SESSIONs > > > > > > Stefano Esposito wrote: > >> is it somehow possible to store the connection reference obtained from > mysql_

Re: [PHP] MySQL and SESSIONs

2007-10-05 Thread Stut
hit the DB unless you really need to. -Stut -- http://stut.net/ -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 4:31 PM To: Stefano Esposito Cc: php-general@lists.php.net Subject: Re: [PHP] MySQL and SESSIONs Stefano Esposito wrote: is it someho

RE: [PHP] MySQL and SESSIONs

2007-10-05 Thread Vo, Lance
Stut What's good for multiple webservers? thanks -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 4:31 PM To: Stefano Esposito Cc: php-general@lists.php.net Subject: Re: [PHP] MySQL and SESSIONs Stefano Esposito wrote: > is it somehow pos

Re: [PHP] MySQL and SESSIONs

2007-10-05 Thread Stut
Stefano Esposito wrote: is it somehow possible to store the connection reference obtained from mysql_connect() (note the absence of the "i") in a $_SESSION element? No. Why would you want to? You'd end up holding on to a database connection even when nothing is using it. If you want to optimi

[PHP] MySQL and SESSIONs

2007-10-05 Thread Stefano Esposito
Hi all, is it somehow possible to store the connection reference obtained from mysql_connect() (note the absence of the "i") in a $_SESSION element? -- Stefano Esposito -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Problemi di Liquidità? Con Logos