diff options
Diffstat (limited to 'web/core')
-rw-r--r-- | web/core/database.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/web/core/database.php b/web/core/database.php index 4b44e86..079b0de 100644 --- a/web/core/database.php +++ b/web/core/database.php @@ -69,6 +69,18 @@ class DatabaseQuery { return $this; } + public function lt($item) { + $this->query .= "< ?\n"; + array_push($this->param, $item); + return $this; + } + + public function le($item) { + $this->query .= "<= ?\n"; + array_push($this->param, $item); + return $this; + } + public function where_in($column, $array) { if (!$this->where) { $this->where = TRUE; |