From cea3e4c0de51683979fdad6868c9e383e9039f10 Mon Sep 17 00:00:00 2001 From: neoraider Date: Sun, 26 Feb 2006 23:19:05 +0000 Subject: QueryLimit zur DB-Klasse hinzugef?gt. --- code/db.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/db.inc.php b/code/db.inc.php index d46b5cd..5fbd8e8 100644 --- a/code/db.inc.php +++ b/code/db.inc.php @@ -15,9 +15,12 @@ $this->conn->PConnect($server, $user, $passwort, $database); } - function Query($query, $args = null) { - $sql = $this->conn->Prepare($query); - return $this->conn->Execute($sql, $args); + function Query($query, $args = false) { + return $this->conn->Execute($query, $args); + } + + function QueryLimit($query, $numrows = -1, $offset = -1, $args = false) { + return $this->conn->SelectLimit($query, $numrows, $offset, $args); } function InsertID() { -- cgit v1.2.3