I am currently working on a PHP mysql application which has a grid with a few thousand records to display.Now,the requirement doesn’t want it to be paginated in the normal way,(By displaying paging links 1,2,3 etc) but do it when user clicks on a link Show More Results. I have an anchor link,on click of which the next batch of records will be fetched from the server.The normal pagination as we all know can be achieved using the
offset and limit parameters in a sql query
select * from abc limit,offset;
So,in this case say my limit is “20”,but how can make the calculations for the offset that will go to the query?
I know basics of sending a ajax request on click.Something like this which would be called on click
$.ajax({
//request parameters and success and failure callback
})
Any help or guidance on this would be very helpful.
Thanks for the time.
hey man i am giving you an idea only:
Consider You Have Table Links and Column Name Also Links in which there are links.
first use php directly in your html.
INDEX.HTML
more_results.php