Black Eagle Team Minishell
Path:
D:
/
inetpub
/
vhosts
/
supauldairy.com
/
httpdocs
/
MAIN
/
[
Home
]
File: addnotice.php
<?php require "config/config.php"; ?> <?php if((isset ($_POST['submit']))){ $notice_name = $_POST['notice_name']; $publish_date = $_POST['publish_date']; $last_date = $_POST['last_date']; $description = $_POST['description']; $notice_doc = time() . '_' . $_FILES['notice_doc']['name']; $target = "NOTICE/" . $notice_doc; move_uploaded_file($_FILES['notice_doc']['tmp_name'], $target); $query = "INSERT INTO notice(noticename,description,noticedoc,date_publish,last_date) VALUES('$notice_name','$description','$notice_doc','$publish_date','$last_date')"; $fire = mysqli_query($con,$query) or die ("cannot insert data".mysqli_error($con)); echo "<script> location.href='noticemaster.php' </script>"; } ?>
©
2020 Black Eagle Team