mysqli_close()-when&where to use
Posted: Mon Mar 14, 2011 8:47 pm
Hi All,
My question today has to do with the way in which mysqli_close() has to be used... After having written quite a lot lines and functions of php code interacting with mysql database I realized that I was not using mysqli_close().
My questions are:
Do all mysqli_connect() have to have their correspondent mysqli_close() ? If Yes, when and where do you have to include it ? At the end of the script ? Right after the query to the database was run ? other ?
Any hint about the propper use of mysqli_close() it will be very much appreciated
!
Thanks !
El Vasco
My question today has to do with the way in which mysqli_close() has to be used... After having written quite a lot lines and functions of php code interacting with mysql database I realized that I was not using mysqli_close().
My questions are:
Do all mysqli_connect() have to have their correspondent mysqli_close() ? If Yes, when and where do you have to include it ? At the end of the script ? Right after the query to the database was run ? other ?
Any hint about the propper use of mysqli_close() it will be very much appreciated
Thanks !
El Vasco