Jump to content

Array Pagination


devofash

Recommended Posts

Hi Guys,

 

Could do with some help if possible. I've got an array of data and I need to paginate it. I'm not that good with arrays / pagination.

 

Sorry I don't have any php code, coz I don't know where to start. The pagination doesn't have to be complex just a simple Next/Previous link will do and then i'll try to add the 1,2,3,4 pages in by myself.

 

Any help is much appreciated. Thanks in advance.

Array
(
    [Company] => Array
    (
        [Employers] => Array
        (
            [0] => Array
            (
                [Name] => Array
                (
                    [value] => Person 1
                )                
                [Email] => Array
                (
                    [value] => [email protected]
                )
            )

            [1] => Array
            (
                [Name] => Array
                (
                    [value] => Person 2
                )
                [Email] => Array
                (
                    [value] => [email protected]
                )
            )

            [2] => Array
            (
                [Name] => Array
                (
                    [value] => Person 3
                )
                [Email] => Array
                (
                    [value] => [email protected]
                )                
            )
        )
    )
)

Link to comment
https://forums.phpfreaks.com/topic/196019-array-pagination/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.