Create A Conference Room Scheduler PHP Web Application.
Requirements:
- Allow users to login to the site
- Allow users to register to the site
- Users should be able to reserve rooms for a specified date and time range
- Validate user input
- Display error messages when appropriate.
- List conference room reservations sorted in date and start time order
- Allow two display options:
- All-display all conference room reservation schedules; past and future
- Future-display conference room reservations that are scheduled in the future only
* Do not allow reservations outside of business hours or during the weekends
A copy of the DB is attached
Note: you can make any modifications to the DB you feel you need
— phpMyAdmin SQL Dump — version 4.9.1 — https://www.phpmyadmin.net/ — — Host: 10.123.0.210:3307 — Generation Time: Sep 09, 2020 at 06:55 PM — Server version: 5.7.27 — PHP Version: 7.0.33-0+deb9u9 SET SQL_MODE = “NO_AUTO_VALUE_ON_ZERO”; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = “+00:00”; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; — — Database: `micdim1_db2` — — ——————————————————– — — Table structure for table `conferenceRoom` — CREATE TABLE `conferenceRoom` ( `roomID` int(11) NOT NULL, `capacity` int(11) DEFAULT NULL, `floorNum` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; — — Dumping data for table `conferenceRoom` — INSERT INTO `conferenceRoom` (`roomID`, `capacity`, `floorNum`) VALUES (101, 20, 1), (102, 15, 1), (103, 15, 1), (104, 10, 1), (105, 10, 1), (201, 15, 2), (202, 15, 2), (203, 20, 2), (204, 10, 2), (205, 25, 2); — ——————————————————– — — Table structure for table `reservation` — CREATE TABLE `reservation` ( `reservationID` int(11) NOT NULL, `userID` int(11) DEFAULT NULL, `roomID` int(12) DEFAULT NULL, `reservationDate` date DEFAULT NULL, `resStart` datetime DEFAULT NULL, `resEnd` datetime DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; — — Dumping data for table `reservation` — INSERT INTO `reservation` (`reservationID`, `userID`, `roomID`, `reservationDate`, `resStart`, `resEnd`) VALUES (1, 1002, 104, ‘2020-08-24’, ‘2020-08-24 08:00:00’, ‘2020-08-24 08:30:00’), (2, 1004, 101, ‘2020-08-25’, ‘2020-08-25 09:20:00’, ‘2020-08-25 13:40:00’), (3, 1004, 201, ‘2020-08-28’, ‘2020-08-28 10:40:00’, ‘2020-08-28 13:40:00’); — ——————————————————– — — Table structure for table `user` — CREATE TABLE `user` ( `userID` int(11) NOT NULL, `userName` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL, `pass` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; — — Dumping data for table `user` — INSERT INTO `user` (`userID`, `userName`, `pass`) VALUES (1001, ‘Nick’, ‘pass1’), (1002, ‘Jack’, ‘pass2’), (1003, ‘Sarah’, ‘pass3’), (1004, ‘Mike’, ‘pass4’); — — Indexes for dumped tables — — — Indexes for table `conferenceRoom` — ALTER TABLE `conferenceRoom` ADD PRIMARY KEY (`roomID`); — — Indexes for table `reservation` — ALTER TABLE `reservation` ADD PRIMARY KEY (`reservationID`), ADD KEY `userID` (`userID`), ADD KEY `roomID` (`roomID`); — — Indexes for table `user` — ALTER TABLE `user` ADD PRIMARY KEY (`userID`); — — AUTO_INCREMENT for dumped tables — — — AUTO_INCREMENT for table `conferenceRoom` — ALTER TABLE `conferenceRoom` MODIFY `roomID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=206; — — AUTO_INCREMENT for table `user` — ALTER TABLE `user` MODIFY `userID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1005; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;