Topic: How to add mysql ref of Easy PHP Upload pics? (Read 709 times)
I crack Photoshop!
Posts: 3
26 credits Members referred : 0
« on: Jul 06, 2006, 02:19:54 PM »
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?
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6301
38632 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Jul 06, 2006, 02:38:50 PM »
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?