summaryrefslogtreecommitdiff
path: root/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'db.php')
-rw-r--r--db.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/db.php b/db.php
index fb2b8a4b9..00a6bc153 100644
--- a/db.php
+++ b/db.php
@@ -123,4 +123,10 @@ function db_close($link) {
}
}
+function db_affected_rows($link, $result) {
+ if (DB_TYPE == "pgsql") {
+ return pg_affected_rows($result);
+ } else if (DB_TYPE == "mysql") {
+ return mysql_affected_rows($link);
+ }
?>