Understanding upload.php Understanding upload.php
 

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

Understanding upload.php

Started by just_some_guy, September 30, 2007, 03:22:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

just_some_guy

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,
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

Its ok, i worked it out; it inserts at the end of the script once the user has chosen keywords etc.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums