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