I have a query
$result = $conn->query("select * from cabs where po = '$po' and Anew > $filter ORDER BY title limit $cnt,1")
that works fine and populates a file base on the $cnt that is populated based on click the next or previous button to go to a record. was does not work is the $filter, no matter what filter is set to it returns all records. any way to fix this.
var po = $('#po').val();
$.ajax ({
type: "POST",
url: "poInfo2.php",
//async:false,
dataType: "json",
data: ({po:po , filter:$('#filter').val(), cnt:cnt, end:$('#end').html() }),
success: function(data){
$("#end").html(data.pages);
$("#start").html(cnt+1);
var isbn = data.isbn;
$("#cnt").val(data.cnt);
pages of code that fills in a table
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
so what i want to do is remove the records from the start (so instead of showing the total at 16 if their were 4 records with filter below anew then it would show 12 and be able to scroll through - cannot move data from the table because it is editable by the front end users.