Checking for ADO errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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();

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux