【问题标题】:Move_uploaded_foto to the database将_uploaded_foto 移动到数据库
【发布时间】:2015-06-08 10:00:17
【问题描述】:
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());
}

如何将图像保存到数据库中?

【问题讨论】:

  • 您需要对图像进行base64编码才能将其插入数据库。

标签: php mysql database upload


【解决方案1】:
猜你喜欢
  • 2013-07-24
  • 2017-09-22
  • 2018-06-16
  • 2021-07-06
  • 2014-11-18
  • 1970-01-01
  • 2019-12-19
  • 1970-01-01
  • 2013-11-18
相关资源
最近更新 更多