database connection close/resultset clearing

Codes here !

Moderators: macek, egami, gesf

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

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

DoppyNL

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

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

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

thank you very much for the clarification.

much appreciated.

kele


Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 1 guest

cron