Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Understanding upload.php  (Read 2774 times)

0 Members and 1 Guest are viewing this topic.

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Understanding upload.php
« 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?

Code: [Select]
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,
« Last Edit: October 01, 2007, 08:22:00 am by GauGau »
Logged
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

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Understanding upload.php
« Reply #1 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.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 20 queries.