Online Hotel Reservation System in PHP/MySQLi with Source Code


This Online Hotel Reservation System is an automated system that allows your guest to plan their bookings online at their convenience. With the help of this system, you can manage well your business that can increase both your efficiency within the office and your profit. Now, your bookings are easily accessible anytime and anywhere as long as you have an internet connection and a laptop, smartphone or tablet because it has a very responsive design. Compared to a manual process that may take you a lot of time to book, this process of online booking a room made simple, easy and enjoyable because it provides a friendly user interface.

These are the following features of the system

Admin Side

  • Manage Rooms
  • Manage Accommodation
  • Manage Reservation
  • Generate Reports
  • Manage Users

Public Side

  • Home
  • Room and Rates
  • About Us
  • Contact Us
  • Guest Profile
  • Manage Booking Cart
  • Reservation Details
  • Submit Reservation
  • Login and Logout

How To Run

  1. Download the zip file.
  2. Download and install XAMPP
  3. Run the XAMPP control panel and start MySQL and Apache
  4. Go to C:\xampp\htdocs and extract the downloaded zip file (marimar) inside the folder
  5. Open the browser and go to http://localhost/phpmyadmin/ to create the database
  6. Click the new to create a database.
  7. Name the database dragonhousedb.
  8. Click Import to import the SQL file.
  9. Click choose file and select the file that can be found inside the root folder.
  10. Click go
  11. Then, browse http://localhost/marimar in your browser for the hotel reservation website and http://localhost/marimar/admin for the system admin panel.

Accessing this system using the admin accounts:

  • Username: admin
  • Password: admin


Requirements: Download and install the following: XAMPP Latest Version For more information about the system. You can contact me @ Email – [email protected] Mobile No. – 09305235027 – TNT Or feel free to comment below.

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Submitted byadmining (not verified)on Mon, 08/05/2019 - 18:09

let's see first what's the output
Submitted bybbty (not verified)on Wed, 02/26/2020 - 15:55

hello sir, i a downloaded your script and i love it. but i have a small problem, i tried to connect the root dir. but is not responding. i am using a paid host and sub domain. pls go to folder (flexhubhotel/includes/initialize.php) i am looking for the document root for the subdomain and please help me state how is going to look like defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR); defined('SITE_ROOT') ? null : define ('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'].DS.'flexhubhotel'); pls help me fill it in i am using a paid host so my folders name isnt the same as marimar
Submitted byRidhiwani (not verified)on Fri, 04/03/2020 - 20:41

no database
Submitted byAngelo Bumagat (not verified)on Mon, 04/05/2021 - 20:12

Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in C:\xampp\htdocs\marimar\includes\functions.php on line 37
Submitted byOkwemba Nickson (not verified)on Tue, 07/20/2021 - 12:26

fatal error
Submitted byAnonymous (not verified)on Wed, 07/13/2022 - 06:34

my oneeee
Submitted byf (not verified)on Mon, 10/17/2022 - 14:14

Fatal error: Uncaught Error: Class "Room" not found in C:\xampp\htdocs\marimar\admin\mod_room\controller.php:33 Stack trace: #0 C:\xampp\htdocs\marimar\admin\mod_room\controller.php(7): doInsert() #1 {main} thrown in C:\xampp\htdocs\marimar\admin\mod_room\controller.php on line 33
Submitted bysmit naria (not verified)on Fri, 12/30/2022 - 00:33

Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in C:\New folder\htdocs\marimar\includes\functions.php on line 37
Submitted byJanesolutions (not verified)on Tue, 11/14/2023 - 20:04

Great project!!!
Submitted byAnonymous (not verified)on Sun, 12/24/2023 - 13:48

Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in C:\New folder\htdocs\marimar\includes\functions.php on line 37
Submitted byViper2001 (not verified)on Fri, 06/07/2024 - 06:30

When I host it says "Fatal error", what should I do???

Add new comment