Possible Duplicates:
using mysql_close()
close mysql connection important?
What are the benefits of closing the connection using mysql_close() as the last line of your script compared to letting php close it for you?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
None if you have it as the last line of the script.
You can improve performance by closing as soon as you are done so the handle is available for other processes to use.
This implies you are doing some other stuff after you are done with the db.