From fcae7030cce39357d197d668629399eeb557f5a2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 13 Oct 2002 12:00:50 +0000 Subject: - 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". --- includes/database.pear.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'includes/database.pear.inc') 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(); +} + ?> -- cgit v1.2.3