diff options
author | neoraider <devnull@localhost> | 2006-02-27 00:19:05 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-02-27 00:19:05 +0100 |
commit | cea3e4c0de51683979fdad6868c9e383e9039f10 (patch) | |
tree | cc438682f58f3ccf603b00c623065ccc38388db8 /code | |
parent | 446b94d9cd09003903a270619f368cba0b7ca594 (diff) | |
download | neon-cea3e4c0de51683979fdad6868c9e383e9039f10.tar neon-cea3e4c0de51683979fdad6868c9e383e9039f10.zip |
QueryLimit zur DB-Klasse hinzugef?gt.
Diffstat (limited to 'code')
-rw-r--r-- | code/db.inc.php | 9 |
1 files 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() { |