Insert Image With Unique Name Using PHP Mysqli





$df1=md5(time());

$name1=$_FILES['photo1']['name'];
$size1=$_FILES['photo1']['size'];
$type1=$_FILES['photo1']['type'];
$temp1=$_FILES['photo1']['tmp_name'];
$dst1="".$df1.$name1;
move_uploaded_file($temp1,"resume_file/".$dst1);

In Query Pass $dst1 in values section for image
Previous
Next Post »