Does "mysql_query () or die ()" leave the mysql connection open?

Does mysql_query() or die() an open mysql connection? I thought it calls die() , but it never calls mysql_close() on the connection ...

Thanks.

+4
source share
3 answers

From mysql_close docs:

The use of mysql_close () is usually not required, as non-persistent open links automatically close at the end of the script. See also release of resources.

+8
source

http://php.net/manual/en/function.mysql-close.php

Using mysql_close () is usually necessary, since fake open links are automatically closed at the end of the script.

+5
source

Nope.
Read the manual :

Using mysql_close () is usually necessary, since fake open links are automatically closed at the end of the script.

+2
source

All Articles