Professional Documents
Culture Documents
Objectives:
Through this project we present a comprehensive solution for movie ticket booking system
.This system is specifically designed for theatre owners to sell tickets online.
Therefore, the main objective of our project is to develop an enhanced, automated, accurate,
user-friendly and less maintained way of ticketing system.
Usefulness:
This project is aimed to provide the customers facility to book tickets for cinema halls online,
through which they can book tickets anytime, anywhere.
This project is basically made for providing the customers anytime and anywhere service for
booking the seat in the cinema hall and to gather information about the movies online. The
user can easily be able to know about the movies released and then make the choice.
The project can speedup, digitalize the whole ticketing system.Through this project we can do:
Provide anytime anyplace service for the customer.
Provide effective solutions for easily availability of movie tickets.
Provide simpler way to choose our seat and area for movie show.
To minimize the number of staff at the ticket box.
And so on.
Tools:
WAMP server
PHP
HTML
Procedure:
At first we have design our E-R diagram for our project .The E-R diagram is given below:
+------+--------+---------+
| id | name | seat_no |
+------+--------+---------+
| 328 | Rahul | M20 |
| 330 | Emon | M21 |
| 340 | Faisal | M22 |
+------+--------+---------+
mysql> insert into admin values("24","xxxx");
mysql> insert into admin values("27","yyyy");
mysql> select * from admin;
+----------+----------+
| admin_id | password |
+----------+----------+
| 24 | xxxx |
| 27 | yyyy |
+----------+----------+
mysql> insert into discount values("A20","Rahul","100");
mysql> insert into discount values("A30","Emon","200");
mysql> insert into discount values("A50","Faisal","300");
mysql> select * from discount;
+----------+--------+-------+
| offer_id | name | price |
+----------+--------+-------+
| A20 | Rahul | 100 |
| A30 | Emon | 200 |
| A50 | Faisal | 300 |
+----------+--------+-------+
+------+-----------+-----------------+
| t_id | t_name | location |
+------+-----------+-----------------+
| A | Albert | 5th floor right |
| M | Margerate | 5th floor left |
| W | William | 6th floor right |
+------+-----------+-----------------+
+----------+---------+------------+---------+-------+------+-----------+
| admin_id | show_id | show_date | seat_no | price | t_id | ticket_no |
+----------+---------+------------+---------+-------+------+-----------+
| 24 | Harry11 | 20/10/2019 | M20 | 400 | M | 2010M2001 |
| 27 | Harry11 | 21/10/2019 | M22 | 400 | M | 2110M2076 |
+----------+---------+------------+---------+-------+------+-----------+
+---------+----------+---------+---------+
| st_time | end_time | show_id | lang |
+---------+----------+---------+---------+
| 5pm | 7:30 pm | Harry11 | English |
| 8pm | 10:30 pm | Endgame | English |
| 2pm | 4:30 pm | Harry11 | English |
+---------+----------+---------+---------+
mysql> insert into customer
values("102030","Emon","xxxxxxxx","emonju330@gmail.com","017790xxxx");
PHP :
Movie:
<html>
<head>
<title>MOVIE NAME</title>
<style >
body {background-color:8CB9EE;}
</style>
</head>
<body >
<table align="center">
<tr>
</tr>
<tr>
</tr>
<tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</td>
</tr>
</table>
</form>
<?php
$con=mysqli_connect("localhost","root","","pr_movie");
$a=mysqli_real_escape_string($con,$_REQUEST['m_name']);
$b=mysqli_real_escape_string($con,$_REQUEST['rls_date']);
$c=mysqli_real_escape_string($con,$_REQUEST['director']);
$d=mysqli_real_escape_string($con,$_REQUEST['actor']);
$e=mysqli_real_escape_string($con,$_REQUEST['m_id']);
if(isset($_POST['x']))
$result=mysqli_query($con,$q);
if(isset($_POST['y']))
$result=mysqli_query($con,$disp);
echo '<tr><th>movie_name</th><th>release_date</th><th>director</th><th>actors</th><th>movie_id</th></tr>';
while($row=mysqli_fetch_array($result))
echo '<td>'.$row[0].'</td>';
echo '<td>'.$row[1].'</td>';
echo '<td>'.$row[2].'</td>';
echo '<td>'.$row[3].'</td>';
echo '<td>'.$row[4].'</td>';
echo'</tr>';
echo '</table>';
mysqli_close($con);
?>
</body>
</html>
Showth:
<html>
<head>
<title>Show Details</title>
<style >
body {background-color:8CB9EE;}
</style>
</head>
<body >
<form action="" method="post">
<table align="center">
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<tr>
</td>
</tr>
</table>
</form>
<?php
$con=mysqli_connect("localhost","root","","pr_movie");
$a=mysqli_real_escape_string($con,$_REQUEST['st_time']);
$b=mysqli_real_escape_string($con,$_REQUEST['end_time']);
$c=mysqli_real_escape_string($con,$_REQUEST['show_id']);
$d=mysqli_real_escape_string($con,$_REQUEST['lang']);
$e=mysqli_real_escape_string($con,$_REQUEST['m_id']);
$n=mysqli_real_escape_string($con,$_REQUEST['dlt']);
#$up="UPDATE `members` SET `contact_number` = '0759 253 542' WHERE `membership_number` = 1";
if(isset($_POST['x']))
$result=mysqli_query($con,$q);
if(isset($_POST['s']))
$result=mysqli_query($con,$n);
if(isset($_POST['y']))
$result=mysqli_query($con,$disp);
echo '<tr><th>show_time</th><th>end_time</th><th>show_id</th><th>lang</th><th>m_id</th></tr>';
while($row=mysqli_fetch_array($result))
echo '<td>'.$row[0].'</td>';
echo '<td>'.$row[1].'</td>';
echo '<td>'.$row[2].'</td>';
echo '<td>'.$row[3].'</td>';
echo '<td>'.$row[4].'</td>';
echo'</tr>';
echo '</table>';
if(isset($_POST['z']))
$result=mysqli_query($con,$disp2);
echo '<tr><th>m_name</th><th>director</th><th>rls_date</th><th>lang</th><th>st_time</th></tr>';
while($row=mysqli_fetch_array($result))
echo '<td>'.$row[0].'</td>';
echo '<td>'.$row[1].'</td>';
echo '<td>'.$row[2].'</td>';
echo '<td>'.$row[3].'</td>';
echo '<td>'.$row[4].'</td>';
echo'</tr>';
echo '</table>';
echo '</table>';
if(isset($_POST['u']))
$result=mysqli_query($con,$disp3);
echo '<tr><th>show_time</th><th>end_time</th><th>show_id</th><th>lang</th><th>m_id</th></tr>';
while($row=mysqli_fetch_array($result))
echo '<td>'.$row[0].'</td>';
echo '<td>'.$row[1].'</td>';
echo '<td>'.$row[2].'</td>';
echo '<td>'.$row[3].'</td>';
echo '<td>'.$row[4].'</td>';
echo'</tr>';
echo '</table>';
mysqli_close($con);
?>
</body>
</html>
Ticket:
<html>
<head>
<title>Tickets</title>
<style >
body {background-color:8CB9EE;}
</style>
</head>
<body >
<table align="center">
<tr>
</tr>
<tr>
</tr>
<tr>
<td> Enter Ticket Id: </td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</td>
</tr>
</table>
</form>
<?php
$con=mysqli_connect("localhost","root","","pr_movie");
$a=mysqli_real_escape_string($con,$_REQUEST['m_name']);
$b=mysqli_real_escape_string($con,$_REQUEST['rls_date']);
$c=mysqli_real_escape_string($con,$_REQUEST['director']);
$d=mysqli_real_escape_string($con,$_REQUEST['actor']);
$e=mysqli_real_escape_string($con,$_REQUEST['m_id']);
$result=mysqli_query($con,$q);
if(isset($_POST['y']))
$result=mysqli_query($con,$disp);
echo '<tr><th>movie_name</th><th>release_date</th><th>director</th><th>actors</th><th>movie_id</th></tr>';
while($row=mysqli_fetch_array($result))
echo '<td>'.$row[0].'</td>';
echo '<td>'.$row[1].'</td>';
echo '<td>'.$row[2].'</td>';
echo '<td>'.$row[3].'</td>';
echo '<td>'.$row[4].'</td>';
echo'</tr>';
echo '</table>';
mysqli_close($con);
?>
</body>
</html>
Admin:
<html>
<table align="center">
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</form>
<?php
$con=mysqli_connect("localhost","root","","movie_cine");
$a=mysqli_real_escape_string($con, $_REQUEST['admin_id']);
$b=mysqli_real_escape_string($con, $_REQUEST['password']);
if(isset($_POST['x']))
$result=mysqli_query($con,$q);
if(isset($_POST['y']))
$result=mysqli_query($con,$disp);
echo '<tr><th>admin_id</th><th>password</th></tr>';
while($row=mysqli_fetch_array($result))
echo'<tr bgcolor="white">';
echo '<td>'.$row[0].'</td>';
echo '<td>'.$row[1].'</td>';
echo'</tr>';
echo '</table>';
mysqli_close($con);
?>
</body>
</html>
Customer:
<html>
<table align="center">
<tr>
<td> Enter customer Id: </td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</form>
<?php
$con=mysqli_connect("localhost","root","","movie_cine");
$a=mysqli_real_escape_string($con, $_REQUEST['c_id']);
$b=mysqli_real_escape_string($con, $_REQUEST['c_name']);
$c=mysqli_real_escape_string($con, $_REQUEST['password']);
$d=mysqli_real_escape_string($con, $_REQUEST['email_id']);
$e=mysqli_real_escape_string($con, $_REQUEST['phone']);
if(isset($_POST['x']))
$result=mysqli_query($con,$q);
if(isset($_POST['y']))
$result=mysqli_query($con,$disp);
echo '<table height=180 width=360 border=10 align="center">';
echo '<tr><th>c_id</th><th>c_name</th><th>password</th><th>email_id</th><th>phone</th></tr>';
while($row=mysqli_fetch_array($result))
echo'<tr bgcolor="white">';
echo '<td>'.$row[0].'</td>';
echo '<td>'.$row[1].'</td>';
echo '<td>'.$row[2].'</td>';
echo '<td>'.$row[3].'</td>';
echo '<td>'.$row[4].'</td>';
echo'</tr>';
echo '</table>';
mysqli_close($con);
?>
</body>
</html>
Theatre:
<html>
<body>
<table align="center">
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</form>
<?php
$a=$_POST['t_id'];
$b=$_POST['t_name'];
$c=$_POST['location'];
$con=mysql_connect('localhost','root','');
mysql_select_db('movie_cine');
if(isset($_POST['x']))
$result=mysql_query($q);
if(isset($_POST['y']))
$result=mysql_query($disp);
echo '<tr><th>t_id</th><th>t_name</th><th>location</th></tr>';
while($row=mysql_fetch_array($result))
{
echo'<tr>';
echo '<td>'.$row[0].'</td>';
echo '<td>'.$row[1].'</td>';
echo '<td>'.$row[2].'</td>';
echo'</tr>';
echo '</table>';
mysql_close($con);
?>
</body>
</html>
Inner join:
Conclusion:
This is a website based database, which will let a company to easily maintain interaction
with customer. And will also help company business be more customize and reliable.