PHP newbie here!
So here is my problem:
On my website I have a flash image gallery.The way the gallery works is by uploading pictures in a folder and editing? an xml file.(pics.xml) where it adds the following code when you upload a picture:
<pictures> <image location="nameofpicture1.jpg" desc="" /> <image location="nameofpicture2.jpg" desc="" /> </pictures>etc...
Now I have users that upload products they sell on the website or they advertise their business(hotels, jewellers, car resellers,...)
So for every "product" they post they upload their pictures to a specific path and I keep their pictures path in a mysql database.
I m trying to work a solution so that everytime a visitors clicks to see a product he gets the flash gallery for that product.
This means I have to create/edit the pics.xml file so that it only contains the pictures for that specific post.
So the user open a view_product.php which includes a php file that contains the flash. The flash gets the pictures for the gallery from the pics.xml file.
Any ideas on how to work out this problem?
Edit: I just uploaded the php file that edits the xml file if that is any help. I guess I could edit that file each time a user views a post but i dont think that's a good idea!
Attached Files
Edited by rvalkass, 03 October 2007 - 06:30 AM.
















