diff options
| author | Andrew Dolgov <fox@madoka.spb.ru> | 2006-08-16 08:28:10 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.spb.ru> | 2006-08-16 08:28:10 +0100 |
| commit | a4dbc5247a35661f746f0f012c08a13db65713ee (patch) | |
| tree | bda44b8ed6ad8820a2b2a5a51d9edc6320270c07 /db.php | |
| parent | 68c1b64ff1950963db69780dc15b33015cdece6f (diff) | |
rework label editor from inline to infobox
Diffstat (limited to 'db.php')
| -rw-r--r-- | db.php | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); + } +} + ?> |