spewn
Programmer
- May 7, 2001
- 1,034
I have written a script that calls the database and retrieve rows. I don't ever use the disconnect:
what, if anything, can result from not disconnecting every time i access the database?
this what i use to access the db:
i call the above script several times, in different variations in the same script.
i'm curious if it's just good practice or if there is a significant reason to disconnect...
thanks!
- g
Code:
$dbh->disconnect();
what, if anything, can result from not disconnecting every time i access the database?
this what i use to access the db:
Code:
$sth = $dbh->prepare("select whatever from table");
$sth->execute;
i call the above script several times, in different variations in the same script.
i'm curious if it's just good practice or if there is a significant reason to disconnect...
thanks!
- g