ok. so i am comming along. Now i have this version of the script. and the problem is that it isn't telling me the file name
<html>
<body>
<?php
//Include the pages needed for this to work and upload place
include ('db.php');
include ('functions.php');
include ('fileupload-class.php');
$file = 'uploads/';
$path = 'uploads/';
//Get the needed info
$filename = $_FILES['userfile'];
$des = $_POST['description'];
$sdate = date("m/d/y g:i:s");
$ip = getip();
$upload_file_name = file['name'];
//Run some small file checks
$filename = stripslashes($filename);
$filename = str_replace("'","",$filename);
#--------------------------------------------#
#--Any Extra options i feel like including---#
#--------------------------------------------#
// MODE: if your are attempting to upload
// a file with the same name as another file in the
// $path directory
//
// OPTIONS:
// 1 = overwrite mode
// 2 = create new with incremental extention
// 3 = do nothing if exists, highest protection
$mode = 2;
// UPLOAD the file
#-----------------------------------------------#
#--Well lets not forget the $my uploader stuff--#
#-----------------------------------------------#
// Create a new instance of the class
$my_uploader = new uploader($_POST['language']); // for error messages in french, try: uploader('fr');
$my_uploader->max_filesize(900000);
#-----------------------------------------------#
#-----------Drum Roll Please--------------------#
#--------ITS TIME TO UPLOAD!!!!!!---------------#
#-----------------------------------------------#
if ($my_uploader->upload($upload_file_name)) {
$my_uploader->save_file($path, $mode);
}
if ($my_uploader->error) {
echo $my_uploader->error . "<br><br>\n";
} else {
// Successful upload!
$name = $my_uploader->file['name'];
$ext = Get_Extension_From_File($name);
$msg = fe_is_delete("uploads/$name.$ext");
rename("uploads/" . $name, "uploads/" . $name . ".$ext");
mysql_query("INSERT INTO `snpvc` (`filename`, `description`, `datetime`, `ip`, `review`) VALUES ('$name','$des','$sdate','$ip','no')") or die ("MySQL error: " . mysql_error());
print("Saved Game Successfully Uploaded!<br><br>");
// Print all the array details...
//print_r($my_uploader->file);
}
echo 'Here is some more debugging info:';
print_r($_FILES);
echo "<p><p>";
echo "<br>The File Name is: $my_uploader_file";
echo "<br>Your IP is: $ip";
echo "<br>The date is: $sdate";
print "</pre>";
?>
<a href="index.php">Home</a> | <a href="uploader.php">Upload Another</a> | <a href="view.php">View Uploaded</a>
</body>
</html>
(im still debugging it lol )