From 57145e7b51a682ab7fc872a373cc2d31975847cb Mon Sep 17 00:00:00 2001 From: Sudipto Mallick Date: Wed, 3 Jan 2024 16:28:18 +0530 Subject: Complete the PHP assignment #1 --- mysql-php/code/a1.php | 128 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 119 insertions(+), 9 deletions(-) (limited to 'mysql-php/code') diff --git a/mysql-php/code/a1.php b/mysql-php/code/a1.php index 022b9ee..107f07a 100644 --- a/mysql-php/code/a1.php +++ b/mysql-php/code/a1.php @@ -33,12 +33,42 @@ form input { float: right; } form input[type=submit] { float: none; display: block; margin: 0 auto; } form > * { display: block; padding: 0.5em; } table, tr, th, td { border-collapse: collapse; border: 1px solid black; } +table.record th { text-align: left; } th, td { padding: 5px; } +main ul li { list-style-type: square; } +p.error { padding: 2em; background-color: #eeccbb; } +
+

Menu of operations on records of students

+ +
+ +
+

Enter E-mail address to search for the record of a student

+ + +
+
@@ -49,7 +79,6 @@ function display_form() { - Show students' details
+

Students' details

+

The students who were born in years 2000 to 2005, inclusive.

+

record(s) found.

+ + + + + + + + + + +
Roll No.NameE-mailCityDate of birth
+ ', array_map('htmlspecialchars', [ + $row['ROLL'], $row['NAME'], $row['EMAIL'], $row['CITY'], + $row['DATE_OF_BIRTH'] + ])); ?> +
+ +

Record of the student

+ + + + + + +
Roll No.
Name
E-mail
City
Date of birth
+Path ' . htmlspecialchars($path) . ' was not found.

'; + die(); } -- cgit 1.4.1-2-gfad0