Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

ISBN: 0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

LOQ 2-4: How do nerve cells communicate with other nerve cells?

Answered: 1 week ago

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago

Question

Identify three ways to manage an intergenerational workforce.

Answered: 1 week ago

Question

Prepare a Porters Five Forces analysis.

Answered: 1 week ago

Question

Analyze the impact of mergers and acquisitions on employees.

Answered: 1 week ago