Organizational Research By

Surprising Reserch Topic

using mysql close


using mysql close  using -'php,mysql'

asked Oct 13, 2015 by nikhilapatil
0 votes
2 views



Related Hot Questions

3 Answers

0 votes

In the manual :

mysql_close() closes the non-persistent connection to the MySQL server that's associated with the specified link identifier.

Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.

More reading about that here

answered Oct 13, 2015 by mca.agarwal
0 votes

As answered by others and the manual, it's not necessary. But if you wonder the use; you usually only want to do this when there is more to come in the PHP script and you want to ensure that another connection/transaction is to be used then.

answered Oct 13, 2015 by ajit.chavhan
0 votes

Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution. See also freeing resources.

read more at :

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

answered Oct 13, 2015 by shegokar.anjeet

...