coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: just_some_guy on September 30, 2007, 03:22:30 PM

Title: Understanding upload.php
Post by: just_some_guy on September 30, 2007, 03:22:30 PM
Hello,

I am confused about how upload.php deals with entries into the database.

Does the script store the information in TEMPDATA as an encoded string with an id?

Can i then insert the data into the pictures table with this?

mysql_query("INSERT INTO {$CONFIG['PICTURES']} WHERE pid = '$unique_ID'  VALUES('$uploadedfile' ) ")
or die(mysql_error()); 


The script is supposed to offer another upload then move it to a set location and then insert the URL into a new coloumn in the pictures table.

I would appreciate your help, thanks,
Title: Re: Understanding upload.php
Post by: just_some_guy on September 30, 2007, 08:06:52 PM
Its ok, i worked it out; it inserts at the end of the script once the user has chosen keywords etc.