From 08dc058cfe1184281fef89c0c484b9e8a6b7a6b7 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Wed, 13 Sep 2023 19:08:54 +0530 Subject: Lab04: HTML Form Validation + Factorial --- Lab04/insert.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Lab04/insert.php (limited to 'Lab04/insert.php') diff --git a/Lab04/insert.php b/Lab04/insert.php new file mode 100644 index 0000000..6a5a04f --- /dev/null +++ b/Lab04/insert.php @@ -0,0 +1,54 @@ + + + + + Insert Page page + + + +
+ Data stored in a database successfully." + . " Please browse your localhost php my admin" + . " to view the updated data"; + + echo nl2br("\n$first_name\n $last_name\n " + . "$gender\n $phone \n $email \n $city\n $department"); + +} else{ + echo "ERROR: Could not insert the data values $sql. " + . mysqli_error($conn); +} + +// Close connection +mysqli_close($conn); +?> +
+ + + \ No newline at end of file -- cgit v1.2.3