RE: [PHP] OOB problem, super stumped. (resolved)
| From: | Robert Cummings | Date: | Wed, 30 May 2007 03:53:53 +0000 |
| Subject: | RE: [PHP] OOB problem, super stumped. (resolved) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255778@lists.php.net to get a copy of this message | ||
On Tue, 2007-05-29 at 23:07 -0400, Brian Seymour wrote:
> Strangely enough the only thing that was wrong was:
>
> $this->result=mysql_query($query, $this->conx);
>
> I removed $this->conx so it looked like
>
> $this->result=mysql_query($query);
NO NO NO... don't do that. If you remove the link identifier then
mysql_query() defaults to the last connection opened. In which case if
you make more than one DB connection, you'll have connection soup.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'