summaryrefslogtreecommitdiffstats
path: root/lib/class/dba.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-04 19:48:18 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-04 19:48:18 +0000
commit805d273b0f41ba55027babaeff01845d7bd04d64 (patch)
treead810a2684e45a6d235f3a8acae6d910feed1e11 /lib/class/dba.class.php
parent5f3caeda01c6267d583b9243dc10cfbcf4af64ae (diff)
downloadampache-805d273b0f41ba55027babaeff01845d7bd04d64.tar.gz
ampache-805d273b0f41ba55027babaeff01845d7bd04d64.tar.bz2
ampache-805d273b0f41ba55027babaeff01845d7bd04d64.zip
tweaked the debug a tad for failed song inserts
Diffstat (limited to 'lib/class/dba.class.php')
-rw-r--r--lib/class/dba.class.php10
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