summary refs log tree commit diff stats
path: root/mysql-php/text
diff options
context:
space:
mode:
authorSudipto Mallick <>2024-01-02 03:38:10 +0000
committerSudipto Mallick <>2024-01-02 03:38:10 +0000
commit7451edff7692e86c5238ff7bc6659825e242a84e (patch)
tree830fe25caf403869fe77df83bc44822ea6f5f11d /mysql-php/text
parenta70e0a59817ce06a3dd23b3750ae16ee6660deaf (diff)
downloadzadania-7451edff7692e86c5238ff7bc6659825e242a84e.tar.gz
Quick backup, need to be rewritten
Diffstat (limited to 'mysql-php/text')
-rw-r--r--mysql-php/text/a1.typ15
-rw-r--r--mysql-php/text/a2.typ12
2 files changed, 27 insertions, 0 deletions
diff --git a/mysql-php/text/a1.typ b/mysql-php/text/a1.typ
new file mode 100644
index 0000000..efdc981
--- /dev/null
+++ b/mysql-php/text/a1.typ
@@ -0,0 +1,15 @@
+#import "/tpl.typ": *
+#show: A => apply(A)
+#set raw(lang: "php")
+#set par(leading: 0.725em)
+
+#assignment(1)[
+  Create a table `Student` in a MySQL database containing the fields `name`, `roll`, `city`, `email` and `date_of_birth` and insert 5 records into this table and display them using PHP.
+]
+
+#scos(1)[
+    === Form page
+    #align(center, image("/output/1/1.png", width: 60%))
+    === Display record
+    #image("/output/1/2.png", width: 100%)
+]
diff --git a/mysql-php/text/a2.typ b/mysql-php/text/a2.typ
new file mode 100644
index 0000000..989f30f
--- /dev/null
+++ b/mysql-php/text/a2.typ
@@ -0,0 +1,12 @@
+#import "/tpl.typ": *
+#show: A => apply(A)
+#set raw(lang: "php")
+#set par(leading: 0.65em)
+
+#assignment(2)[
+  Write a PHP script to insert the records in the table in Assignment 1 and display the records in a separate table of all those students who were born in between `01/01/2000` to `31/12/2005`.
+]
+
+#scos(2)[
+    #image("/output/2.png", width: 100%)
+]