University of Bahrain Information Technology College Computer Science Department ITCS 333 – Assignment 3 Assume you have StudentsDB database stored in MySQL server that contains the following 2 tables as follows: Table 1: Students Table 2: Grades int, Primary Key, Auto Increment int, Primary Keу, Аuto Increment Sid Gid UniversityID varchar(8), Unique int, Foreign Key varchar( 10) Sid Name varchar(50) CourseCode Major varchar(50) Credits int CourseGrade varchar(4) *** Note: Students must use PDO to access MYSQL. DB, MySQLi isn't allowed *** Implement the following PHP scripts as required below: 1. displayStudentGrades.php: 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, Total Credits Passed and Total Credits Registered at the bottom of the TABLE. Highlight the course row by red if it's F grade. The studentID is received using HTTP GET method from an HTML form. 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. All inputs must be validated using PHP Regular Expressions (JavaScript or HTMLS validations aren't allowed). 3. Login.php: Extend your website by adding another table to your database called users, then write a PHP program, so that only admin user's type can access the programs defined in Part i and 2, and only regular users type can access the program defined in Part 1. (Tip: use session to ensure authorization) 4. UploadStudentPictures.php: Add new database's table called studentPictures in your DB. The table should contain the following columns (id (int-Auto Increment- Primary), Sid (int-Foreign Key), PicFilename (varchar(100)). Write a PHP script that allows the student to upload any number of pictures and store the pictures filename in the defined DB's table. In addition, the script should allow the student to view all of his pictures. This program is only accessible when the student login successfully. Note: You program should create a unique filename hefore saving it into the server.
University of Bahrain Information Technology College Computer Science Department ITCS 333 – Assignment 3 Assume you have StudentsDB database stored in MySQL server that contains the following 2 tables as follows: Table 1: Students Table 2: Grades int, Primary Key, Auto Increment int, Primary Keу, Аuto Increment Sid Gid UniversityID varchar(8), Unique int, Foreign Key varchar( 10) Sid Name varchar(50) CourseCode Major varchar(50) Credits int CourseGrade varchar(4) *** Note: Students must use PDO to access MYSQL. DB, MySQLi isn't allowed *** Implement the following PHP scripts as required below: 1. displayStudentGrades.php: 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, Total Credits Passed and Total Credits Registered at the bottom of the TABLE. Highlight the course row by red if it's F grade. The studentID is received using HTTP GET method from an HTML form. 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. All inputs must be validated using PHP Regular Expressions (JavaScript or HTMLS validations aren't allowed). 3. Login.php: Extend your website by adding another table to your database called users, then write a PHP program, so that only admin user's type can access the programs defined in Part i and 2, and only regular users type can access the program defined in Part 1. (Tip: use session to ensure authorization) 4. UploadStudentPictures.php: Add new database's table called studentPictures in your DB. The table should contain the following columns (id (int-Auto Increment- Primary), Sid (int-Foreign Key), PicFilename (varchar(100)). Write a PHP script that allows the student to upload any number of pictures and store the pictures filename in the defined DB's table. In addition, the script should allow the student to view all of his pictures. This program is only accessible when the student login successfully. Note: You program should create a unique filename hefore saving it into the server.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 4 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY