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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -