Little problem in PHP

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
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

Little problem in PHP

Post by eshban »

Hello,

I am facing a little problem in PHP.

I have a table which has three fields

Table Name : images
field1 Name:img_id
field2 Name :image_path
field3 Name:image_text

The requirement is to show the Image and its respective text in a Table. And show only One image and its text at a time.

Below Table there are two button links, "NEXT" and "PREVIOUS". When user press the "NEXT" button the page
refreshes and it will show the NEXT IMAGE and its respective text. And when user press the PRevious button
it goes onestep back.

Kindly help that how can i do this.

I spend many hours on this, but i am unable to write its algo and sequenced code. I am unable to write the sequence of code.

Kindly help


Thanks
User avatar
louie35
Forum Contributor
Posts: 144
Joined: Fri Jan 26, 2007 8:40 am
Location: Dublin
Contact:

Post by louie35 »

User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

What code have you put together so far?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Search for pagination. There are hundreds of threads on these boards about pagination. There are even tutorials about pagination. Search a little for pagination and I am sure you will come across something to help you figure it out.
gavin1996
Forum Newbie
Posts: 22
Joined: Tue Jan 30, 2007 8:30 pm

Post by gavin1996 »

Post Reply