|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Next and Previous LInks
Hi Guys,
I have a PHP guestbook and all the posts to my guestbook are posted in one page, so How can I make let's say 10 posts per page? I took the guestbook php script from: http://www.developers-resources.com/stories.php?story=01/11/22/0455791 Please feed me back HaVe a GooD DaY ;) Ali ali_alsaffar@hotmail.com |
|
#2
|
|||
|
|||
|
RE: Next and Previous LInks
give this one a shot
http://codewalkers.com/tutorials.php?show=4 worked for me ;) |
|
#3
|
|||
|
|||
|
RE: Next and Previous LInks
I have found a little problem with my prev and next links, for some reason it counts the amount of rows in the table and not the rows being displayed, is there anyways of correcting this? also having a displaying 15 of 25 reviews in A etc?
|
|
#4
|
||||
|
||||
|
RE: Next and Previous LInks
You need to use a LIMIT statement in your SQL. There is a function in PHP that is supposed to let you get the number of rows that would have been returned without the LIMIT but it frequently returns an error.
do this: this gives you the total number of records. Then do this: note: $start must have a value of zero on the first page and after that you add x per page (in this case 10). B |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Next and Previous LInks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|