From php.net:
The use of mysql_close () is usually not required, as fickle open links automatically close at the end of the script.
for performance, it depends on situations, how long it has been used, how long it has been idle, etc. (e.g. long run). In most cases, there is a singleton pattern by which you have one open connection, and do all the requests using this open descriptor. But this is not entirely true, since mysql_connect itself is support:
If the second call is made using mysql_connect () with the same arguments, the new connection will not be established, but instead the link identifier for the already opened link will be returned. The new_link parameter changes this behavior and forces mysql_connect () to always open a new link, even if mysql_connect () was called earlier with the same parameters.
Basically, mysql_close is not really needed when it comes to short scripts.
Igoris Azanovas
source share