summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() {