Skip to content

Imasha28638/Hotel-Reservation-System

Repository files navigation

Hotel Management Web Application

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.


🧰 Technologies Used

  • Frontend: HTML5, CSS3, JavaScript
  • Backend: PHP
  • Database: MySQL
  • Tools: XAMPP (Apache, MySQL)

📁 Project Structure (Key Sections)

  • index.php – Home page
  • login.php, logout.php – User authentication
  • admin/ – Admin dashboard with user and hotel owner management
  • hotel-owner/ – Dashboard for hotel owners to manage bookings, rooms, etc.
  • include/ – Shared components like headers, footers, and action scripts
  • Styles/ – CSS stylesheets
  • Js/ - JavaScript files
  • database.sql – MySQL export file to set up the database (to be included)

🛠️ Setup Instructions (Using XAMPP)

1. Install XAMPP

Download from https://www.apachefriends.org and install.

2. Start Services

Open XAMPP Control Panel and start:

  • Apache
  • MySQL

3. Place Files in htdocs

Move this entire project folder to: C:\xampp\htdocs\Hotel-Reservation-System-for-Tourists

4. Create and Import the Database

  1. Go to http://localhost/phpmyadmin
  2. Click New, then name the database (e.g., hotel_db)
  3. Click on the new database, go to the Import tab
  4. Choose the ceylonReserveDB.sql file in SQL folder from this project
  5. Click Go to import tables

🧾 Configure Database Connection

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.

About

This is the websites for hotel reservation system for tourists made using HTML, CSS, JS, PHP and SQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors