Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
210 views
in Technique[技术] by (71.8m points)

php - pagination data searching Array data for Start and End point of values which exist in data

I have to do pagination for my custom array data. That data not from sql queries. Means I have arrray data and just I have to put start and end point. In between data found that I have to show on browser. Please let me know how to do it

Array ( [0] => Array ( [name] => Mechanical Cars [category] => pull back )

[1] => Array
    (
        [name] => Jigsaw
        [category] => puzzles
    )

[2] => Array
    (
        [name] => HiTech Cars
        [category] => remote
    )

[3] => Array
    (
        [name] => Teddy Bears
        [category] => soft
    )

[4] => Array
    (
        [name] => Baby pillow
        [category] => soft
    )

[5] => Array
    (
        [name] => Chinese Checker
        [category] => puzzles
    )

[6] => Array
    (
        [name] => Jumbo Helicopter
        [category] => remote
    )

)

this is my array(it may be big one), I want to do pagination on it, for every click I have to show 5 records. This is my custom array. Not from database. How to do this custom pagination.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...