2021E006_Lab_01 1
2021E006_Lab_01 1
Lab 01
NAME : JENARTHTHAN A.
N M
N
1
1 N
EER DIAGRAM – ENHANCED ER DIAGRAM
N M
Explanation:
Attributes:
MID (Primary Key): Identifies each MA uniquely.
M_name: Composite attribute consisting of first_name and last_name.
M_mail (Primary Key): Email address of the MA.
Attributes:
CourseCode (Primary Key): Unique identifier for each course.
CourseName: Name of the course.
Credits (Multivalued Attribute): Credits associated with the course (can be 2 or 3).
Manages Relationship: Represents the M:N relationship between MAs and Courses.
Attributes:
Semester (Multivalued Attribute): Indicates the semesters the course is managed in (1-8).
Creating Sample Project for Course Registration:
Source Codes:
2.Following MySQL code was imported in the phpMyAdmin in order to make the tables in the database
Config.php
Common.php
Course.php – this is for viewing of the courses
CreateCourse.PHP
db.php
deleteCourse.php
editCourse.php
index.php
Header.php
Footer.php
Page 1
http://localhost/StudentCourseRegistration/MA/index.php
Page 2 -CreateCourse – a page containing form for inserting course details in the student_database
Page 3 – to retrieve data from the student_database and show
Let’s add one course and let’s see whether it is inserted to the student database or not
in student_database
in viewing page
we can also do action (edit / delete) records
Updating the record
example: we will edit the Applied electricity module name to chemistry
Update Course
The record is updated successfully
Deleting the record
Let’s delete thermodynamics
When we click the delete button cookie will are you sure click ok then the record will be deleted
From the database
Filtering data
We can also filter the data by clicking the semester button (semester wise)