|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Passing arrays and objects between pages
How do we pass arrays and objects from one page to another?
I'm writing a script that retrieves records from database, since all the records cannot be displayed in just one page, I want to pass the array of records to the second page, third page and so on. Hope somebody help. Thanks in advance. |
|
#2
|
|||
|
|||
|
Hello Roy,
Sounds like you're in need of PHP and MySQL recordset paging. One of our authors, Joe, has written an easy to use tutorial on this, and you'll learn all you need to know by reading http://www.devarticles.com/art/1/110. If you have any more questions, then please feel free to post them here! |
|
#3
|
|||
|
|||
|
you should use LIMIT in your sql query.
SELECT * FROM table LIMIT $start, $end. then you can pass on the new start variable to the next page. |
|
#4
|
|||
|
|||
|
I thought everytime we queried the database, the results returned would be in different order.
|
|
#5
|
|||
|
|||
|
it shouldn't be.
you can use ORDER BY column to set the order. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Passing arrays and objects between pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|