二进制-html表单上传file,php获取然后保存到数据库中,类型blob
程序员文章站
2022-04-24 19:44:15
...
二进制php表单上传
php: require_once('mysql_helper.php');$pic = $_POST['pic'];$path = './Users/e-bag4/Desktop'. $_FILES['pic']['name'];if (move_uploaded_file($_FILES['pic']['tmp_name'],$path)) { $sql="insert into e_user(pic)values('$path')"; if(execute_data($sql)){ echo "上传成功!!"; }else{ echo "文件上传失败!!"; }} 我想问一下我这代码中需要怎么改进一下