Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use php mysql: When the teacher selects a class, an option will appear to choose the subjects for that class only and not all subjects.
Use php mysql: When the teacher selects a class, an option will appear to choose the subjects for that class only and not all subjects. Then all students will watch for that class so that the teacher can enter the grades for the first test, second test, midterm, and final test.
Note: The teacher cannot enter all the grades at once. He can only enter the grades for the first test, but when the test comes again, he can make changes on the same page. so the add result and update in one forms.
An image showing the desired page desgin forms
tables structure
CREATE TABLE IF NOT EXISTS tblresult
id int NOT NULL,
StudentId int DEFAULT NULL,
ClassId int DEFAULT NULL,
SubjectId int DEFAULT NULL,
quiz varchar DEFAULT NULL,
quiz varchar NOT NULL,
midterm varchar NOT NULL,
final varchar NOT NULL,
PostingDate timestamp NULL DEFAULT CURRENTTIMESTAMP,
UpdationDate timestamp NULL DEFAULT NULL ON UPDATE CURRENTTIMESTAMP
ENGINEInnoDB DEFAULT CHARSETlatin;
DROP TABLE IF EXISTS tblclasses;
CREATE TABLE IF NOT EXISTS tblclasses
id int NOT NULL AUTOINCREMENT,
ClassName varchar DEFAULT NULL,
Section varchar NOT NULL,
CreationDate timestamp NOT NULL DEFAULT CURRENTTIMESTAMP,
UpdationDate timestamp NOT NULL DEFAULT :: ON UPDATE CURRENTTIMESTAMP,
PRIMARY KEY id
ENGINEInnoDB AUTOINCREMENT DEFAULT CHARSETlatin;
DROP TABLE IF EXISTS tblsubjects;
CREATE TABLE IF NOT EXISTS tblsubjects
id int NOT NULL AUTOINCREMENT,
SubjectName varchar NOT NULL,
SubjectCode varchar NOT NULL,
Creationdate timestamp NOT NULL DEFAULT CURRENTTIMESTAMP,
UpdationDate timestamp NOT NULL DEFAULT :: ON UPDATE CURRENTTIMESTAMP,
PRIMARY KEY id
ENGINEInnoDB AUTOINCREMENT DEFAULT CHARSETutfmb;
DROP TABLE IF EXISTS tblstudents;
CREATE TABLE IF NOT EXISTS tblstudents
StudentId int NOT NULL AUTOINCREMENT,
StudentName varchar NOT NULL,
RollId varchar NOT NULL,
ClassId int NOT NULL,
RegDate timestamp NOT NULL DEFAULT CURRENTTIMESTAMP,
UpdationDate timestamp NULL DEFAULT NULL ON UPDATE CURRENTTIMESTAMP,
Status int NOT NULL,
PRIMARY KEY StudentId
UNIQUE KEY RollIdRollId
ENGINEInnoDB AUTOINCREMENT DEFAULT CHARSETutfmb;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started