From: Andrew Dolgov Date: Tue, 16 May 2006 12:37:35 +0000 (+0100) Subject: add db_affected_rows X-Git-Tag: 1.2.0~124 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fea67e6a393c895f5b53b3695e98583587a9f479;p=tt-rss.git add db_affected_rows --- 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); + } ?>