$conf = parse_ini_file(dirname(__FILE__) . '/DB/consultas.ini', true);
$db = DB::connect($conf['dsn'],$conf['opciones']);
if (DB::isError($db)) {
- die ($db->getMessage());
+ trigger_error($db->getMessage(), E_USER_ERROR);
}
return $db;
}
// -X2C
} // -X2C Class :SAMURAI_DB
-?>
+?>
\ No newline at end of file