From 1d2192e22e6bba0015cfb5a1e9ae46eb2b677725 Mon Sep 17 00:00:00 2001 From: enockkays <32764779+enockkays@users.noreply.github.com> Date: Fri, 25 Dec 2020 22:41:35 +0800 Subject: [PATCH] Update Script.php Removed the passport number entries from the code. --- Script.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Script.php b/Script.php index 93c0f2b..f311050 100644 --- a/Script.php +++ b/Script.php @@ -314,7 +314,6 @@ if (!empty($_POST["frm_reset_password"])) { // ############################### CREATE Lecturer/TA USER ################################## if (!empty($_POST["frm_createlecturrer"])) { $email=mysqli_real_escape_string($con,$_POST["email"]); - $passport=mysqli_real_escape_string($con,$_POST["passport"]); $fullname=mysqli_real_escape_string($con,$_POST["fullname"]); $type=mysqli_real_escape_string($con,$_POST["type"]); $password=$passport; @@ -326,8 +325,8 @@ if (!empty($_POST["frm_createlecturrer"])) { $_SESSION["info_Admin_Users"]="Email adress : ".$email." is already in use."; header("Location: Admin.php"); } - $sql= "INSERT INTO `users_table`(`Email`, `Password`, `Full_Name`, `UserType`, `Passport_Number`) VALUES " - . "('$email','$password','$fullname','$type','$passport')"; + $sql= "INSERT INTO `users_table`(`Email`, `Password`, `Full_Name`, `UserType`) VALUES " + . "('$email','$password','$fullname','$type')"; if ($con->query($sql) === TRUE) { $_SESSION["info_Admin_Users"]=$type." user Created successfully : email ".$email." and $password as Password."; @@ -515,7 +514,7 @@ function checksize($file) { $result = $_FILES["$file"]['size']/(1024*1024); - if($result > 3) + if($result > 1) { return FALSE; }