MDB2 errors
| From: | Bernhard | Date: | Sun, 01 Jul 2012 07:57:02 +0000 |
| Subject: | MDB2 errors | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-31585@lists.php.net to get a copy of this message | ||
Dear Ladies and Gentlemen,
i want to ask if PEAR::isError(connection) is correct, because the PEAR
class has a method isError but it is not static. Second, can you tell me
if this cod is right:
public static function find_all() {
$req = $db->select("SELECT * FROM ".self::$table);
if (MDB2::isError($req) == -18){
$db->dbc->__call(createTable, array(self::$table, self::$fields,
self::$table_options));
}
and if i say
mdb2->errorMessage(MDB2::isError(query)) is the right appliance for this
function
Thank you very much for your help
Bernhard