0
if ($count == 1){
    $suc= move_uploaded_file($file_tmp, $destin.$file_name);
    echo"<br/>";
    $query = mysqli_query($con,"INSERT INTO login ( profile_img) VALUES ('$file_name')  WHERE useremail='".$_SESSION["sess_useremail"]."'") 
       or die("cant  still upload ".mysql_error());
}

How can i save image into the database?

Suhaib Janjua
  • 3,538
  • 16
  • 59
  • 73

1 Answers1

0

try this links How to upload images into MySQL database using PHP code and How to add photo in mysql database using php?

Community
  • 1
  • 1
makjal
  • 15
  • 1
  • 9