Checking for ADO errors

From: Date: Thu, 15 Feb 2007 16:41:38 +0000
Subject: Checking for ADO errors
Groups: php.db 
Request: Send a blank email to php-db+get-43081@lists.php.net to get a copy of this message
Is there a better way to check for ADO errors than what I have done here using the die()? $dbh = db_open($dbserver, $user, $password, $database) or die ("Cannot open database"); if ($dbh) {
     $stmnt = "SELECT BadFieldName FROM MC";
     $rs = $dbh->Execute($stmnt) or die("Cannot execute db_test");
} if ($rs) $rs->close(); if ($dbh) $dbh->close();

« previous php.db (#43081) next »