时间:2021-07-01 10:21:17 帮助过:13人阅读
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 "文件上传失败!!"; }} 我想问一下我这代码中需要怎么改进一下