php - How do I limit an already limited query? -


how can limit query limited?

the thing is, i'm dividing results pages, , in case, done limit (is there other way it...?), using limit again seems impossible. obviously, if have ideas on how can done in php instead (simple code, please), post it.

use offset

e.g.

[limit {[offset,] row_count | row_count offset offset}]

see select documentation

the offset calculated doing this

$offset = ($page-1) * $pagesize 

the select

select       ...          yourtable    limit        $offset, $pagesize 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -