Mysql help with uploading pics. Mysql help with uploading pics.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Mysql help with uploading pics.

Started by twave, February 03, 2004, 11:51:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

twave

Hi

Im trying to get the filepath and filename combined into a seperate new field in the mysql database (cpg11d_pictures) when either:

1) photos are batch loaded or
2) via single upload.

so that i can view pictures that has been uploaded in say album=5 in another php file in my website using a recordset, repeat region and filter in dreamweaver.  

eg  filepath = userpics/whats_on/
     filename = latest.jpg

and to add my files path =/coppermine/

result in a new field = /coppermine/userpics/whats_on/latest.jpg

Any ideas?  This would allow me to upload pics to an album and they dynamically update on a whats_on php page.  

If i am going about this the wrong way please help?  I am so close just need the data to input into mysql.

Many Thanks

Joachim Müller

there's already a path info in the existing mySQL structure - no need the add an extra field with excess (garbage) info. Just write your query on the whats_on.php page correctly, no need to mess with the tables...

GauGau