Page 1 of 1
pictures on click
Posted: Thu May 27, 2004 7:02 pm
by ansa1
I have a table in db with stored 10 pictures.
Table: pictures
ID
listingID
picture_1
picture_2
pictu…..
How to make pictures display, on clicks in order 1, 2, 3,...
Thanks .....
ansa1
Posted: Thu May 27, 2004 7:08 pm
by kettle_drum
Keep a count in the url or via POST of what picture to show, and then get this value from the database and show it. Have a link at the bottom that imcrements the image count - so the next image is shown.
Posted: Thu May 27, 2004 8:16 pm
by ansa1
to make it more clearer to me, ( I am pretty new to PHP ) can you give a sample with _ POS T
Thanks
ansa1
Posted: Thu May 27, 2004 8:24 pm
by tim
what hes suggesting is use the GET or POST method (the get would be if it was in the url, ie: user.php?user=tim
you would use
$_GET['user'];
have it a page where it gives all the ids of the images, and when they click on it, assign the id to a var and use the get method on the other page to display it.
i may be wrong, good method tho