//this code is for upload,i have successfully uploaded my file in to uploads folder please can anyone tell me how can i get the image from my folder
if(isset($_REQUEST["upload"]))
{
$name=$_FILES;
$type=$_FILES;
$size=$_FILES;
$check=$_FILES;
$uname=str_replace(" ","_",$name);
$tmp_name=$_FILES;
$target_path = "uploads/";
$target_path = $target_path . basename( $uname);
if(move_uploaded_file($_FILES, $target_path))
{
echo "The file ". basename($uname).
" has been uploaded";
$sql ="INSERT INTO files (name,type,size) VALUES('".$uname."','".$type."','".$size."')";
$result=mysql_query($sql);
}
else
{
echo "There was an error uploading the file, please try again!";
}
}