PHP News per page 5 / Pagination Next - Prev

时间:2015-07-28 23:57:33

标签: php mysql pagination

Is possibile to create PHP pagination system?

With next - prev pagination link? Max 5 news per page.

This is my php code:

@Override
public boolean onTouch(View v, MotionEvent event){
        switch(event.getAction())
        {
            case MotionEvent.ACTION_UP :
            {
                // Do whatever you want here.
            }
        return true;
}

I tried it in different ways , but I failed. I read other answers , but I have been of help.

1 个答案:

答案 0 :(得分:1)

You can do most of it in your query, for example:

FontSize="24px"

this will give you pagination. You can then point next and previous links to ?page=n (where n is the next page number).

Hope this helps!