diff options
Diffstat (limited to 'lib/class/dba.class.php')
-rw-r--r-- | lib/class/dba.class.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php index f396d0f9..62d18e00 100644 --- a/lib/class/dba.class.php +++ b/lib/class/dba.class.php @@ -192,6 +192,16 @@ class Dba { } // insert_id /** + * error + * this returns the error of the db + */ + public static function error() { + + return mysql_error(); + + } // error + + /** * auto_init * This is the auto init function it sets up the config class * and also sets the default database |