From 695f8ccc05d6b3a43920f6e79a2be57498eb980e Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Mon, 31 Oct 2016 11:06:33 +0800 Subject: [PATCH] Yep, sucky query I fixed --- get.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get.php b/get.php index af7bf49..7aadf33 100644 --- a/get.php +++ b/get.php @@ -5,7 +5,7 @@ include 'checklogin.php'; include "connect.php"; $mysql_table = MYSQL_TABLE; -$qry="SELECT * FROM `$mysql_table` ORDER BY `$mysql_table`.`id` ASC LIMIT ".mysqli_real_escape_string($db, $_GET["lastid"])." , 1000"; +$qry="SELECT * FROM `$mysql_table` WHERE `id`>".mysqli_real_escape_string($db, $_GET["lastid"])." ORDER BY `$mysql_table`.`id`"; $result=mysqli_query($db, $qry); $newlastid=$_GET["lastid"]; $jspo=array();