mercredi 21 novembre 2018

How to fetch new records by using limit in php mysql?

I am making an infinite scroll app in which records from database will be fetch. When the user clicks "Load More" button a function is called for retrieving data from database.

My problem is that when I am running this(below) query every Time I am getting the same records.

SELECT ArticleTitle, PreviewText, PreviewImage FROM Articles ORDER BY ID DESC LIMIT 4 

regards....




Aucun commentaire:

Enregistrer un commentaire