Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SECTION 4 - STAFF PAGE 16 MARKS 1. In StaffPage.php, the PHP code to establish the connection with your database is written. Change the name
SECTION 4 - STAFF PAGE 16 MARKS 1. In StaffPage.php, the PHP code to establish the connection with your database is written. Change the name of the database as needed to do the following tasks. (0.5 Mark] 2. By using if-elseif statement, write the code for the following buttons: ( 4 Marks) Buttons Delete Reservation by ID Marks 1 0.5 2.5 0.5 Action Reservation ID textbox should not be empty If it is empty, display" Fill reservation ID textbox to delete a record" If it is not empty: o Delete the record based on the written ID in the textbox from room_reservation table. o Display a message " Record has been deleted" Number of Attendees textbox should be number If it is not number, display Number of Attendees should be number" If it is number: o Update the new number of attendees based on the reservation ID in the room_reservation table. o Display a message "Updated Successfully" Open "report.php" Update Number of Attendees 1 0.5 3 0.5 0.75 View All Tables' Details Reserve the Conference Room Open "Reservation.php" 0.75 3. Close database connection (0.5 Mark] WELCOME STAFF ... Type the reservation ID here Type the New Number of Atteridoes Delete Reservation by ID Update Number of Attendees View All Tables Details Reserve the Conference Room Figure 4 - SatffPage.php CONFERENCE ROOM RESERVATION TABLE: Date Full Name Ahmed Said Rashid Said Al Habsi Said Al Said Department Public Relation Marketing Marketing Dept 2021-01-14 2020-12-30 2020-12-29 STAFF DETAILS TABLE: User ID Username First Name Last Name Password 1 rogers63 jah Gender Female Male david Said 1245 4 Said Al Said 124 5 Khalid Khalid Al Saadi Male 124124 Figure 5 - Report.php
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