|
From: Benjamin C. <bc...@us...> - 2002-03-26 18:40:31
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv11830/inc
Modified Files:
functions.php
Log Message:
Add a default error handler for the database object
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- functions.php 20 Mar 2002 23:56:22 -0000 1.11
+++ functions.php 26 Mar 2002 18:40:27 -0000 1.12
@@ -383,4 +383,9 @@
echo '</pre>';
}
+// Handle a database error
+function handle_db_error(&$obj) {
+ die($obj->message.'<br>'.$obj->userinfo);
+}
+
?>
|