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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -