PHP SQL Pagination -


i can't seem desired result query:

  select *      `messages`     `msgtype` = '0'       , `status` = '0'  order `datesent` desc limit 20, 0  

basically, i'm trying show 20 results per page, query returns nothing. (for record, instances in database have msgtype , status 0)

edit: removing limit part gives me results not divided , paginated want

edit v2 limit should followed offset, # of records (i dumb)

limit 20, 0   

means: start @ row 21, return 0 rows, answer correct.

did mean:

limit 0, 20   

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -