diff --git a/get.php b/get.php index 7aadf33..c443f5f 100644 --- a/get.php +++ b/get.php @@ -10,7 +10,7 @@ $result=mysqli_query($db, $qry); $newlastid=$_GET["lastid"]; $jspo=array(); while ($row = mysqli_fetch_array($result)) { -$newlastid=$newlastid+1; +$newlastid=$row["id"]; array_push($jspo, array("txt"=>stripslashes($row["txt"]), "tim"=>$row["tim"], "id"=>$row["id"])); } echo json_encode(array("posts"=>$jspo, "lastid"=>$newlastid));