Check if db connection is closed - php

Posted by Hamad on Stack Overflow See other posts from Stack Overflow or by Hamad
Published on 2010-06-13T16:06:33Z Indexed on 2010/06/13 16:12 UTC
Read the original article Hit count: 181

Filed under:
|

Db connectivity is handled by an include.

I want to run this command: mysql_close($con);

Only if we currently have a connection. Something like isset()?

Thanks Hamad

© Stack Overflow or respective owner

Related posts about php

Related posts about sql