Hotel Booking System

The back-end part relies on PHP and MySQL databases, while in the front a combination of Bootstrap, HTML 5, CSS 3, JSON objects, AJAX and jQuery allowed us to build the system as it is. Among the highlights worth mentioning, one could refer to an interactive map that presents rooms at different floors, and allows users to book a specific room, for a given period of time. XML has been used for a small functionality in the registration form. The XML reads data stored in the database, and compares it to data insterted in the form, while the user is typing. This is useful because it ensures that there is a unique username for every user.

Hotel Booking Show Case

Code Sample

Excerpt from the main index.php

if (isset($_GET['action'])) {

switch ($_GET['action']) {
case "search":
SearchBooking($pdo);
break;

case "home":
include_once '../hotel_exam/frontPage.html.php';
break ;

case "continue":
include_once 'roomOverview.html.php';
break ;

case "bookRoom":
include_once 'confirmBookings.html.php';
break ;
}
}else {
include_once 'frontPage.html.php';
}
include_once ('mainFooter.html.php');