PEAR::DB replacement class

Contents

The isError() method

This simply determines whether the result of one of the query methods (querry() or get*() etc) is a DB_error object or not. For example:

<?php
    $result = $db->query("SELECT_ 1");
    
    if (DB::isError($result)) {
        die('Error: ' . $result->errtxt);
    }
?>