DB_common::disconnect() -- Disconnects from a database
Beschrijving
Disconnects from a database
Return waarde
boolean - Geeft TRUE terug bij success, FALSE bij een fout.
Note
Deze functie kan niet statisch worden aangeroepen.
Voorbeeld
Voorbeeld 34-1. Using disconnect() <?php
require_once 'DB.php';
$db =& DB::connect('pgsql://someuser:apasswd@localhost/thedb');
if (PEAR::isError($db)) {
die($db->getMessage());
}
$db->disconnect();
?> |
|