summaryrefslogtreecommitdiff
path: root/db.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-16 08:28:10 +0100
committerAndrew Dolgov <[email protected]>2006-08-16 08:28:10 +0100
commita4dbc5247a35661f746f0f012c08a13db65713ee (patch)
treebda44b8ed6ad8820a2b2a5a51d9edc6320270c07 /db.php
parent68c1b64ff1950963db69780dc15b33015cdece6f (diff)
rework label editor from inline to infobox
Diffstat (limited to 'db.php')
-rw-r--r--db.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/db.php b/db.php
index 7766c0563..8b1c5a380 100644
--- a/db.php
+++ b/db.php
@@ -134,4 +134,13 @@ function db_affected_rows($link, $result) {
return mysql_affected_rows($link);
}
}
+
+function db_last_error($link) {
+ if (DB_TYPE == "pgsql") {
+ return pg_last_error($link);
+ } else if (DB_TYPE == "mysql") {
+ return mysql_error($link);
+ }
+}
+
?>