NYCPHP Meetup

NYPHP.org

[nycphp-talk] mysql_close() error

csnyder chsnyder at gmail.com
Tue Dec 21 18:16:10 EST 2004


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.



More information about the talk mailing list