How TO use NEXT and BACK??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ShareInfo
Forum Newbie
Posts: 2
Joined: Mon Oct 07, 2002 10:57 am

How TO use NEXT and BACK??

Post by ShareInfo »

:?:

Hi..

Hope someone here can help me with a little sticky problem.. :roll: or guide me in the right direction...

I am using a while loop to add up user inputs, and I have a incremental variable that counts up the inputs with 1.
Like this;

while($test=mysql_fetch_row($result)) for($i=0;$i<count($num);$i++){
$x=x+1

This works great for continuos listings. I am trying to figure out how to control the numbers of listings shown on one page. Lets say I limit the listing to 20. Then I want there to be 20 listings on page 1, and the user has to click on NEXT to get to the next 20 listings. And hopefully they should also be able to use BACK to go to the previos 20 listings.

Well, hope I made some sence here in the morning. I will apreciate if someone had a good suggestion how to get me in the right direction.

Greetings.. ShareInfo ;)
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post by mydimension »

here is a good tutorial that got me started: http://codewalkers.com/tutorials.php?show=4
ShareInfo
Forum Newbie
Posts: 2
Joined: Mon Oct 07, 2002 10:57 am

Thanks

Post by ShareInfo »

:D Thanks..

Had some really good step-by-step instructions there. Think I found something that guided me in the right direction. I will test it out.

Greetings.. ShareInfo ;)
Post Reply