This is a full-featured dynamic web application for hotel booking and management. It includes an admin panel, hotel owner dashboard, and user interface for booking and managing hotel rooms. The site is built using PHP and MySQL with HTML, CSS, and JavaScript for frontend structure and interactivity.
- Frontend: HTML5, CSS3, JavaScript
- Backend: PHP
- Database: MySQL
- Tools: XAMPP (Apache, MySQL)
index.php– Home pagelogin.php,logout.php– User authenticationadmin/– Admin dashboard with user and hotel owner managementhotel-owner/– Dashboard for hotel owners to manage bookings, rooms, etc.include/– Shared components like headers, footers, and action scriptsStyles/– CSS stylesheetsJs/- JavaScript filesdatabase.sql– MySQL export file to set up the database (to be included)
Download from https://www.apachefriends.org and install.
Open XAMPP Control Panel and start:
- Apache
- MySQL
Move this entire project folder to:
C:\xampp\htdocs\Hotel-Reservation-System-for-Tourists
- Go to
http://localhost/phpmyadmin - Click New, then name the database (e.g.,
hotel_db) - Click on the new database, go to the Import tab
- Choose the
ceylonReserveDB.sqlfile in SQL folder from this project - Click Go to import tables
In your PHP files (likely in config.php), set the following:
$host = "localhost";
$user = "root";
$pass = "";
$dbname = "hotel_db";
$conn = new mysqli($host, $user, $pass, $dbname);Open your browser and visit:
http://localhost/Hotel-Reservation-System-for-Tourists/
Pull requests are welcome! Feel free to open an issue if you have suggestions or bugs to report.