From fea67e6a393c895f5b53b3695e98583587a9f479 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 May 2006 13:37:35 +0100 Subject: [PATCH] add db_affected_rows --- db.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db.php b/db.php index fb2b8a4b..00a6bc15 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); + } ?> -- 2.39.5