PHPMYSQLI Image Upload File


PHPMYSQLI ImageUpload
<!Doctype HTML>
<head>
<title>PHPMYSQLI Upload File</title
</head>

<body>

<form action ="imageupload.php" method="post" enctype="multipart/form-data">


Select a File:<input type="file" name="image"/>

<input type="submit" type="file" name="upload" value="upload file"/>

<?PHP

if (isset($_POST['upload'])){




$image=$_FILES['image']['name'];


$image_tmp=$_FILES['image']['tmp_name'];

move_upload_file($image_tmp,"images/$image");

echo"<img src="images/$image"/>";




}


?>