Mini Project Template
Mini Project Template
(MINI PROJECT)
AIM:
HARDWARE REQUIREMENTS:
SOFTWARE REQUIREMENTS:
● Windows 10
● Notepad++
● Web browser
PROCEDURE:
1. Open notepad++ and type the following HTML code in the new file. Save the file in XAMPP\
HTDOCS.
<html>
<head>
<title>HOTEL MANAGEMENT SYSTEM</title>
</head>
<body>
<form action="System.php">
CUSTOMER NAME:<input type = "text"name="CUSTOMER NAME"><br>
PHONE NUMBER:<input type ="text" name ="PHONE NUMBER"><br>
CITY:<input type ="text" name ="CITY"><br>
NUMBER OF ROOM:<input type ="text" name ="NUMBER OF ROOM"><br>
DATE:<input type ="text" name ="DATE">
<input type="submit"value="BOOK NOW">
</form>
</body>
</html>
2. Create a new file and the type the following PHP code in the file and save it in XAMPP/htdocs.
<?php
$CUSTOMER NAME = $_GET['CUSTOMER NAME'];
$PHONE NUMBER = $_GET['PHONE NUMBER'];
$CITY = $_GET['CITY'];
$NUMBER OF ROOMS = $_GET['NUMBER OF ROOMS'];
$DATE = $_GET['DATE'];
$host = "localhost";
$username = "root";
$password = "";
$database = "student";
etc……….
SAMPLE CODE:
Html Code:
<html>
<head>
<title>HOTEL MANAGEMENT SYSTEM</title>
</head>
<body>
<form action="System.php">
CUSTOMER NAME:<input type = "text"name="CUSTOMER NAME"><br>
PHONE NUMBER:<input type ="text" name ="PHONE NUMBER"><br>
CITY:<input type ="text" name ="CITY"><br>
NUMBER OF ROOM:<input type ="text" name ="NUMBER OF ROOM"><br>
DATE:<input type ="text" name ="DATE">
<input type="submit"value="BOOK NOW">
</form>
</body>
</html>
Php Code:
<?php
$CUSTOMER NAME = $_GET['CUSTOMER NAME'];
$PHONE NUMBER = $_GET['PHONE NUMBER'];
$CITY = $_GET['CITY'];
$NUMBER OF ROOMS = $_GET['NUMBER OF ROOMS'];
$DATE = $_GET['DATE'];
$host = "localhost";
$username = "root";
$password = "";
$database = "student";
OUTPUT SCREENSHOTS:
MYPHPADMIN:
RESULT:
Thus simple GUI based database application ‘HOTEL MANAGEMENT SYSTEM’ is built by
connecting with the database using MySQL (database) as a backend and HTML (Webpage) as a
frontend successfully.