Fix multiple appearances when ids are off
parent
695f8ccc05
commit
48967d0645
2
get.php
2
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));
|
||||
|
|
Loading…
Reference in New Issue