diff --git a/Script.php b/Script.php index 851323e..c0ba6a9 100644 --- a/Script.php +++ b/Script.php @@ -414,7 +414,7 @@ if (!empty($_POST["frm_uploadlab"])) { $deadline = $deadlinedate." ".$deadlinetime; - $date = date("Y-m-d H:i"); + $date = date("Y-m-d H:i:s"); @@ -537,7 +537,7 @@ if (!empty($_POST["frm_submitlab"])) { $url = mysqli_real_escape_string($con, $_POST["url"]); $deadline = $deadlinedate." ".$deadlinetime; - $date = date("Y-m-d H:i"); + $date = date("Y-m-d H:i:s"); // GET UPLOADED FILES $labName = mysqli_query($con,"SELECT * FROM `lab_reports_table` WHERE Lab_Report_ID=$lab_id"); @@ -729,7 +729,7 @@ if (!empty($_GET["savemarks"])) { echo " Marks could not be greater than total"; return; } - $date= date("Y-m-d H:i"); + $date= date("Y-m-d H:i:s"); $feedback="
@$date : ".$feedback; $sql="UPDATE `lab_report_submissions` SET `Marks`='$marks',`Status`='$status',"