|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
PHP results on seperate pages
Hey all
I have a couple of questions for you guys. 1. I have this code for pulling results from a mysql table PHP Code:
this code pulls the results from the table and lays them out in 4 columns across and continues down until it runs out of results. What I would like it to do is lay them out 4 columns across and 10 rows down. Then continue on the next page. I have been trying to find a tutorial, with no luck! Can anyone help with this? 2. Can I use this code and just add the code to continue to the next page or do I have to rewrite it? Thanks. |
|
#2
|
|||
|
|||
|
I have posted this question on 3 boards and no one is answering it....
Am I missing something, or have I asked the wrong question? |
|
#3
|
||||
|
||||
|
Do a search for "paging" or "pagination." There's a tutorial within the articles of this site, I believe, and I'm pretty sure I've seen someone else pose the same question in the forums very recently. It's a fairly common question, and it probably gets few replies because it's considered common courtesy for people to look around before asking questions.
Basically, you'll want to add a limit to your query, keep track of the last starting point, and begin the subsequent page's limit at that starting point. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP results on seperate pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|