I'm working on re-doing my upload system to accept images and Files at once. I'm not worrying about checking the file extentions right now but if you want to add that along with your help or comments feel free to do so.
The Problem I'm having is that it will not copy the files. Basicly and I cannot figure out why. So if you will please look at my code notify me of anything that you see that may cause a problem in the code below it would be a really big help.
Thanks.
if (((($submit1 == TRUE) and ($Game == "The Sims") and ($TS_Type == dup) and ($File_size > 0) and ($ss1_size > 0)))) {
$TS_Type = "Dress Up";
$userna = $_SESSION['userna'];
$link = mysql_connect("$host", "$username", "$password");
mysql_select_db('files') or die(mysql_error());
$Query = "INSERT INTO file_data (id, ftitle, uname, type, dhits, greq, hpage, floc, iloc1, iloc2, fsize, desc1, date) VALUES (null, '$ftitle', '".$_SESSION['userna']."', '$TS_Type', 0, '$Game', '$hpage', 'TS_Files/du/files/$File_Name', 'TS_Files/du/img/$ss1_name', null, '$File_size', '$desc', now())";
mysql_query($Query, $link) or die(mysql_error());
mysql_close($link);
copy($File, "TS_Files/du/files/$File_name");
copy($ss1, "TS_Files/du/img/$ss1_name");
print("<br>Content Details:");
print("<br>File Title: $ftitle");
print("<br>Type: $TS_Type");
print("<br>File Size: $File_size");
print("<br>File Description: $desc");
print("<P>Your file(s) has been sucessfully uploaded to the TSK Network");
unlink ($File);
unlink ($ss1);
}
}