summaryrefslogtreecommitdiff
path: root/includes/database.pear.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-10-13 12:00:50 +0000
committerDries Buytaert <dries@buytaert.net>2002-10-13 12:00:50 +0000
commitfcae7030cce39357d197d668629399eeb557f5a2 (patch)
tree8bb84cfd65abefc81b1bda186a1de669c899ff3c /includes/database.pear.inc
parent30315c40c089ff0cab1abd4916e5d992e48185ae (diff)
downloadbrdo-fcae7030cce39357d197d668629399eeb557f5a2.tar.gz
brdo-fcae7030cce39357d197d668629399eeb557f5a2.tar.bz2
- Committed Jeremy's incarnation of the statistics module. Last minutes
changes include: * a couple of coding style changes, renamed some "stats" into "statistics", etc. * removed the "Who's online" block from the user module. * added db_affected_rows() to the resp. database abstraction layers and made the statistics module use db_affected_rows() instead. * added update logic to "update.php".
Diffstat (limited to 'includes/database.pear.inc')
-rw-r--r--includes/database.pear.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/database.pear.inc b/includes/database.pear.inc
index 9ae4c212a..38796e298 100644
--- a/includes/database.pear.inc
+++ b/includes/database.pear.inc
@@ -106,4 +106,10 @@ function db_next_id($name) {
return $db_handle->nextID($name);
}
+function db_affected_rows() {
+ global $db_handle;
+
+ return $db_handle->affectedRows();
+}
+
?>