summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-02-27 00:19:05 +0100
committerneoraider <devnull@localhost>2006-02-27 00:19:05 +0100
commitcea3e4c0de51683979fdad6868c9e383e9039f10 (patch)
treecc438682f58f3ccf603b00c623065ccc38388db8
parent446b94d9cd09003903a270619f368cba0b7ca594 (diff)
downloadneon-cea3e4c0de51683979fdad6868c9e383e9039f10.tar
neon-cea3e4c0de51683979fdad6868c9e383e9039f10.zip
QueryLimit zur DB-Klasse hinzugef?gt.
-rw-r--r--code/db.inc.php9
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() {