How should I go about this

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

Locked
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

How should I go about this

Post by pinehead18 »

Ok, I am having some huge amount of problems with this scrip i'm working on. What it is, is it is a family photo album. Basically the family member can have up to 5 pictures. One of those pictures is the main picture that sticks out upon the family website, and at the top of their specific page. The other 4 are sub pictures which are just part of their mini photo album.

What i have is a page called my_pictures.php on this page it "shows" all 5 pictures. When you click on the picture it takes you to the upload page and the upload page uploads the picture and updates the sql field to the new picture url. However, in order to tell the upload page what sql feild to update i make the image url on my_pictures.php reflect image=main or image=pic2. However, when it goes to upload the picture the page reloads itself and the script looeses $image.

Does anybody have any suggestions on a better way of doing this but keeping the same ease of use type of system?

Thank you for your help

- Anthony
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

do you have any code to go along with this? How are you calilng the variables ( are you passing it through the url itself? ). Is the images being updated to the sql database? sorry for the confusion, just trying to clarify some aspects of your problem.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Topic continued here:
viewtopic.php?t=16659

Mac
Locked