这是我的new_ticket.php的完整代码。
moment('28 Jun 19', "dd MMM YY");
`
提交票证
请求者*
电子邮件
学科 *
主题
描述*
附件*
提交
取消
<?php
session_start()
date_default_timezone_set('Asia/Kolkata');`
$current_date = date('Y-m-d');
include('admin/connect.php');
$image = $_FILES['image']['name'];
$target = "uploadImage/Profile/".basename($image);
if (move_uploaded_file($_FILES['image']['tmp_name'], $target)) {
$msg = "Image uploaded successfully";
}else{
$msg = "Failed to upload image";
}
extract($_POST);
$sql = "INSERT INTO tbl_tickets (email,subject,content, image,status,date_publish)VALUES ('$email','$subject','$content','$image', 'new','".strtotime(date("Y-m-d h:i:sa"))."')";
if ($conn->query($sql) === TRUE) {
$_SESSION['success']=' Record Successfully Added';
?>
}
<script type="text/javascript">
window.location="create.php";
</script>
<?php
} else {
$_SESSION['error']='Something Went Wrong';
?>
<script type="text/javascript">
window.location="create.php";
</script>
<?php } ?>
请帮助我,我的代码无法移动上传的文件 `