two .php files 1- DisplayStudentGrades.php 2- addnewStudentwithgrades.php

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter2: Database Design Fundamentals
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question
I need the two .php files 1- DisplayStudentGrades.php 2- addnewStudentwithgrades.php Urgent please
ITCS333 Lab 8: PHP MySQL/Prepared Statements/Transactions
Create StudentsDB database in MYSQL server that with the following 2 tables as follows:
Table 1: Students
Table 2: Grades
Sid
UniversityID
Name
Major
int, Primary Key, Auto
Increment
varchar(8), Unique
varchar(50)
varchar(50)
Gid
Sid
CourseCode
Credits
int, Primary Key, Auto
Increment
int, Foreign Key
varchar(10)
int
CourseGrade varchar(4)
Students table hold students info, while Grades table holds all the courses/grades taken by students. Add as many records in the
two tables as sample.
YOU MUST USE PREPARED STATEMENTS TO SOLVE THE FOLLOWING EXERCISES
Implement the following PHP scripts as required below:
1. displayStudentGrades.php: Design HTML form with method GET that asks the user to input a studentID No Input Validation is
required). The script should display student's name and major. In addition, all courses codes with their grades should be displayed
in HTML table followed by its Cumulative GPA, Credits Passed and Credits Registered at the bottom of the TABLE. Highlight the
course row by red if it's F grade. Appropriate error message if the student's id doesn't exists.
2. addnewStudentwithgrades.php: the script should obtain all the required student details using HTML form including courses codes,
credits and grades (Tip: ask the user how many courses he want to enter first and then design a dynamic form asking for user and
course details). YOU MUST USE TRANSACTION AND PREPARED STATEMENT for inserting using records (No Input Validation is
required).
Transcribed Image Text:ITCS333 Lab 8: PHP MySQL/Prepared Statements/Transactions Create StudentsDB database in MYSQL server that with the following 2 tables as follows: Table 1: Students Table 2: Grades Sid UniversityID Name Major int, Primary Key, Auto Increment varchar(8), Unique varchar(50) varchar(50) Gid Sid CourseCode Credits int, Primary Key, Auto Increment int, Foreign Key varchar(10) int CourseGrade varchar(4) Students table hold students info, while Grades table holds all the courses/grades taken by students. Add as many records in the two tables as sample. YOU MUST USE PREPARED STATEMENTS TO SOLVE THE FOLLOWING EXERCISES Implement the following PHP scripts as required below: 1. displayStudentGrades.php: Design HTML form with method GET that asks the user to input a studentID No Input Validation is required). The script should display student's name and major. In addition, all courses codes with their grades should be displayed in HTML table followed by its Cumulative GPA, Credits Passed and Credits Registered at the bottom of the TABLE. Highlight the course row by red if it's F grade. Appropriate error message if the student's id doesn't exists. 2. addnewStudentwithgrades.php: the script should obtain all the required student details using HTML form including courses codes, credits and grades (Tip: ask the user how many courses he want to enter first and then design a dynamic form asking for user and course details). YOU MUST USE TRANSACTION AND PREPARED STATEMENT for inserting using records (No Input Validation is required).
Expert Solution
steps

Step by step

Solved in 6 steps with 2 images

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning