Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

database connection close/resultset clearing

Codes here !

Moderators: macek, egami, gesf

database connection close/resultset clearing

Postby yup33 » Thu Oct 24, 2002 2:26 pm

in asp its common to close the database connection and to set recordsets to nothing, is that necessary with php/mysql and if so what is the equivalent php code to:

Code: Select all
dbConnection.close
dbConnection = nothing
recordset = nothing


thanks
yup33
New php-forum User
New php-forum User
 
Posts: 6
Joined: Thu Oct 24, 2002 2:23 pm

Postby DoppyNL » Fri Oct 25, 2002 2:46 am

PHP will automaticly close the connection at the end of the script, but you may do it you'reself with mysql_close
This may be usefull when using a LOT of different database connections (may speed it up a little)
But it is not neccasary.

Greetz Daan
DoppyNL
 

Postby yup33 » Fri Oct 25, 2002 9:48 am

thank you very much for the clarification.

much appreciated.

kele
yup33
New php-forum User
New php-forum User
 
Posts: 6
Joined: Thu Oct 24, 2002 2:23 pm


Return to mySQL & php coding

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.