diff options
author | Andrew Dolgov <[email protected]> | 2006-05-16 13:37:35 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-05-16 13:37:35 +0100 |
commit | fea67e6a393c895f5b53b3695e98583587a9f479 (patch) | |
tree | 1c7fe6de30edbdd646f816603ab3ec14c2e587a5 | |
parent | 12fb24b921779038ec09b0fb2b31c94380a0aeaa (diff) |
add db_affected_rows
-rw-r--r-- | db.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); + } ?> |