From 1f647374a8cdf3bc5c2d29ff8be277b027925c8c Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 30 Mar 2024 16:36:54 -0400 Subject: post comments, refactor post loading, hide load more btn --- web/core/database.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'web/core/database.php') 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; -- cgit v1.2.3-freya