Sublime directory Surf the web anonymous Pagerank Monitor


How to add mysql ref of Easy PHP Upload pics?

woodie
Thu 6 July 2006, 01:19 pm GMT +0200
I'm integrating a photo gallery system into a php/mysql site and after much looking around online (and testing offline) really like your Easy PHP Upload.

1. Could you advise on code for a 'delete' function where the main pic AND thumnail are deleted?

2. I also need a reference of the file name to be stored in a mysql database table when the image is uploaded so that I can cross reference images uploaded to users - is this possible?

Any ideas?

olaf
Thu 6 July 2006, 01:38 pm GMT +0200


Quote
1. Could you advise on code for a 'delete' function where the main pic AND thumnail are deleted?

check this function inside the upload class: del_temp_file($file) // file is just a filename
Quote
2. I also need a reference of the file name to be stored in a mysql database table when the image is uploaded so that I can cross reference images uploaded to users - is this possible?

to use the filename inside mysql check this post:
http://www.webdigity.com/index.php/topic,3015.0.Multiple+file+upload+%26amp%3B+storing+filenames.html

the user reference coud be done with a usernamed directory (username = foldername)
maybe you like this class for the user management:
http://www.finalwebsites.com/snippets.php?id=10

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional