[nycphp-talk] mysql_close() error
Frank Wong
frank_wong2 at informationideas.com
Tue Dec 21 21:46:47 EST 2004
Now I get it. Thanks for clarifying how mysql_connect and mysql_close work.
Frank
-----Original Message-----
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org]On Behalf Of csnyder
Sent: Tuesday, December 21, 2004 6:16 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] mysql_close() error
Adam Maccabee Trachtenberg wrote:
> I believe that if you try to make a second connection to MySQL via PHP
> that's identical to an existing connection, then PHP will reuse the
> first connection. That's why mysql_connect() returns the same resource
> handle.
Which would explain why $link loses its magical resourceness after the
first mysql_close() -- and also why it's a good idea not to use
mysql_close(), except in exceptional circumstances.
_______________________________________________
New York PHP Talk
Supporting AMP Technology (Apache/MySQL/PHP)
http://lists.nyphp.org/mailman/listinfo/talk
http://www.newyorkphp.org
More information about the talk
mailing list