diff --git a/add-new.php b/add-new.php index d44e2e8..822d238 100644 --- a/add-new.php +++ b/add-new.php @@ -6,8 +6,10 @@ if (isset($_POST["submit"])) { $last_name = $_POST['last_name']; $email = $_POST['email']; $gender = $_POST['gender']; + $nationality = $_POST['nationality']; + $file = $_POST['file']; - $sql = "INSERT INTO `crud`(`id`, `first_name`, `last_name`, `email`, `gender`) VALUES (NULL,'$first_name','$last_name','$email','$gender')"; + $sql = "INSERT INTO `crud`(`id`, `first_name`, `last_name`, `email`, `gender`, `nationality`, `file`) VALUES (NULL,'$first_name','$last_name','$email','$gender','$nationality','$file')"; $result = mysqli_query($conn, $sql); @@ -38,6 +40,7 @@ if (isset($_POST["submit"])) { + @@ -77,6 +80,21 @@ if (isset($_POST["submit"])) { +
+ +   + + +   + + +
+ +
+ + +
+
Cancel diff --git a/edit.php b/edit.php index 7092103..e119175 100644 --- a/edit.php +++ b/edit.php @@ -18,7 +18,6 @@ if (isset($_POST["submit"])) { echo "Failed: " . mysqli_error($conn); } } - ?> @@ -85,6 +84,21 @@ if (isset($_POST["submit"])) {
+
+ +   + + +   + + +
+ +
+ + +
+
Cancel diff --git a/index.php b/index.php index 0403836..b6d8123 100644 --- a/index.php +++ b/index.php @@ -23,6 +23,7 @@ include "db_conn.php"; + @@ -47,6 +48,8 @@ include "db_conn.php"; Last Name Email Gender + Nationality + File Action @@ -62,6 +65,8 @@ include "db_conn.php"; + + "> ">