30, August 2008

How to add mysql ref of Easy PHP Upload pics? - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: How to add mysql ref of Easy PHP Upload pics?
« previous next »
Pages: [1] Print

Author 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: Male
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?

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 Visit through proxy

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 Visit through proxy


Last blog : Is your website is down? Know before your visitors do!
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3164
Tags : php mysql databases Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: How to add mysql ref of Easy PHP Upload pics?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Aug 30, 2008, 02:51:45 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 36.176
Total Topics: 7.461
Total Members: 3.861
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: matsolof

30 Guests, 3 Users online :

17 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.