NYCPHP Meetup

NYPHP.org

[nycphp-talk] mysql_close() error

Frank Wong frank_wong2 at informationideas.com
Tue Dec 21 16:40:28 EST 2004


In my function, there is no reference to $link other than the lines with
mysql_connect and mysql_close.  Also, my function does not call another
function so any code that would alter $link should be contained within this
function.

$link is also a local variable.

I will try removing mysql_close and see what happens.

Thanks.

-----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 4:30 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] mysql_close() error


Not an answer to your question, but unless you explicitly need to
close the db connection (because your script is running in daemon mode
or something) you can leave out the mysql_close() -- the connection is
closed automatically once execution is finished.

Still, that's perplexing. Do you do anything to $link that would cause
it to be recast as a string or int?
_______________________________________________
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