"; } else { ?> Professional Property Services Admin
landscape Couple Mountain Sucess
Site Editor
Please select which site you wish to upload a file to,
Site Name :". $site; print "

Filename :". $filename; print "

Upload to :". $uploadfile; print "

File Size :". $size ." Kb "; // check everything is ok move file to server if it is if (!(file_exists($path . "/" . $_FILES['userfile']['name'])) && $size < 3000 && move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { // get details already in table $result = mysql_query("SELECT site_files1 FROM communitypage WHERE site_name='".$_POST['uploadsiteselect']."'"); while($row = mysql_fetch_array($result)) { $resultfile=$row['site_files1']; } echo "
original file one: ".$resultfile; // update table details mysql_query("UPDATE communitypage SET site_files2 = '".$resultfile."', site_files1='".$filename."' WHERE site_name='".$site."'"); //Inform user file has been uploaded print "
File is valid, and was successfully uploaded.

"; print_r($_FILES); } else { //Display problem print "Problem when uploading the file
Here's some debugging info:
"; print_r($_FILES); // If its the size tell user if ($size > 3000) { print "File is over 3Mb

"; } //if its the name tell the user if (file_exists($path . "/" . $_FILES['userfile']['name'])) { print "File name already exists on the server

"; } } } else { ?>
Send this file:
Copyright PPS 2006
Privacy Statement