Close DB connection ??
Permalink 1 user found helpfulMaybe my question is stupid. I understood how to establish connection with the database with Loader::db().
But what when my request is finished ? basically, i do a "mysql_close($connect)". but here, with ADODB, i don't know.
Do I have to do something like that ?
thanks
try this :
$db = Loader::db();
$db->Close();
i thought there was a mechanism like this one, but wanted a confirmation (rather than let some connections opened but not used)
i try this : $db->close();
It doesnt crash... when i read the ADO documentation, it seems to be the right instruction to close a connection.
Anyone can confirm ? thanks