php - How to select particular rows on a MySQL table? -
i have table called 'topics' in topics saved. want select latest 5 rows table, show them on 1 page, select other 5 latest ones , show them on other page.
i know how echo topic names in while loop, problem here making mysql select 5 rows, other 5 page, not same ones again. how achieve this?
select * tablename order id desc limit 0, 5
on page:
limit 5, 5
Comments
Post a Comment