Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Understanding upload.php  (Read 2688 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.017 seconds with 20 queries.