Understanding upload.php Understanding upload.php
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

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