Oline Movie TicketBooking-1
Oline Movie TicketBooking-1
BACHELOR OF SCIENCE
IN
COMPUTER SCIENCE
Place:
Date:
CERTIFICATE
This is to certify that the project titled “ ONLINE MOVIE TICKET BOOKING ” is
the bonafide work carried out by PRAVEENKUMAR L (35522U18067),
SUNDARESAN D (35522U18101),SATHIYA K (3552U18087) in partial fulfillment
of the requirement for the award of degree of the B.SC. (COMPUTER SCIENCE)
submitted at GOVERNMENT ARTS AND SCIENCE COLLEGE,
TIRUPATTUR is an authentic record his/her work carried out during a period from
2024 to 2025 under the guidance of Mrs. SUJITHA K, M.Sc., M.Phill., B.Ed., SET.,
DEPARTMENT OF COMPUTER SCIENCE.
The Major Project Viva-Voce Examination has been held on _________ ___ .
I would also like to give special thanks to my family as a whole for their continuous
support and understanding when undertaking my project and writing my project.
Your prayer for me was what sustained me this far.
Finally, I would like to thank God, for letting me through all the difficulties. I have
experienced your guidance day by day. You are the one who let me finish my
degree. I will keep on trusting you for my future.
ABSTRACT
1 INTRODUCTION
2. SYSTEM STUDY
2.1. EXISTINGSYSTEM
2.1.1. DRAWBACKS
2.2. PROPOSEDSYSTEM
3.3. ER DIAGRAM
4. SYSTEM TESTING
APPENDICES
SAMPLE OUTPUT
Table of Contents
1) Introduction 7
2) System environment 7
3) Software requirement 8
4) Hardware requirements 8
1) PHP 11
2) HTML 13
3) Cascading style sheet(CSS) 16
4) MYSQL 17
Chapter 7.Coding
33-61
Chapter 8. Conclusion
7) Features of “Movie Ticket Booking System” 62
8) Benefits Accrued from “Movie Ticket Booking System” 63
9) Limitations of “Movie Ticket Booking System” 64
Bibliography
CHAPTER # 1
Introduction
Contents:
Introduction
Problem Definition
Aim
Objective
Goal
Need of System
Problem Definition:
Managing your online movie ticket booking system may seem tricky, but it is a part of customer
service system (application support direct contact with user).
Aim:
“To manage online booking of movie tickets”.
Objective:
To perform a thorough analysis of working of the whole System.
To study the problems in the System through fact finding techniques.
To follow SDLC to develop the system.
To develop conceptual, logical and physical model for the system.
To develop Graphical User Interface (GUI) as per convenience of the user.
To implement the physical model, being tested as per the standards.
To document our efforts and analysis in a proper comprehensible manner.
Goal:
The project is basically targeted at those people who would like to watch movies in cinema hall
and have an Internet access.
The goals of our system are:
To provide an anytime anyplace service for the customer.
To minimize the number of staff at the ticket box.
To promote the film on the internet
To increase the profit
To obtain statistic information from the booking record
Thus, there is a big need of an online movie ticket booking system, which provides all the Above-
mentioned facilities and many more.
CHAPTER # 2
Hardware and
Software
Requirements
Contents:
Introduction
System environment
Software requirement
Hardware requirement
Introduction:
In this chapter we mentioned the software and hardware requirements, which are necessary
for successfully running this system. The major element in building systems is selecting
compatible hardware and software. The system analyst has to determine what software
package is best for the “Online Movie Ticket Booking System” and, where software is
not an issue, the kind of hardware and peripherals needed for the final conversion.
System Environment:
After analysis, some resources are required to convert the abstract system into the real one.
The hardware and software selection begins with requirement analysis, followed by a
request for proposal and vendor evaluation.
Software and real system are identified. According to the provided functional specification
all the technologies and its capacities are identified. Basic functions and procedures and
methodologies are prepared to implement. Some of the Basic requirements such as
hardware and software are described as follows: -
Hardware and Software Specification
Software Requirements:
Hardware Requirements:
2 GB RAM or more.
Contents:
Purpose
Project Scope
Existing System
Proposed System
System Overview
Purpose:
The main purpose of our online ticket booking system is to provide another way for the customer to buy
cinema ticket.
It is an automatic system.
It helps to user to book movie ticket from anywhere anytime.
Also make payment online for it. It helps to people to reserve seats at their prefer time
Project Scope:
The project has a wide scope, as it is not intended to a particular organization. This project
is going to develop generic software, which can be applied by any businesses organization.
More over it provides facility to its users. Also the software is going to provide a huge
amount of summary data.
Proposed System:
The movie ticket booking system is available in the market that can serve users to book
movie tickets from anywhere anytime.
System Overview:
The key features required in the system are as follows:
1) Booking
2) Cancellation
3) User Details
4) Movies
5) Search
6) Report
1) Booking:
The system can book online tickets of the users, which movie they want to go.
2) Cancellation:
The user can cancel their movie tickets as usually.
3) Users Details:
The System stores all the necessary information of the users.
4) Movie:
It shows the movie detail such as timing, casting, trailer, ticket cost, release date etc.
5) Search:
This is provided the search options of the system that can search any related information of the
system.
6) Report:
This shows the reports in different fields of the system.
CHAPTER # 4
Implementation issues
4.1 PHP
PHP can be defined as a programming language for Database access from the web's browser. In
other words, it is an HTML-embedded scripting language. It focuses on the logic of how a page
responds to user input and not how the page looks that i.e. not the primary appearance of the page.
PHP runs on the server side, which means that the web server that sends an HTML file to a user's
browser, will carry out the instructions found in the embedded PHP code first, and then send the
output of the PHP code along with the HTML code. The result is a webpage with dynamic
content.
PHP is a language for creating website that can be more or less interactive. It was created in 1994
by Rasmus Lerdorf who was a software engineer and who was part of the Apache Team. In the
same year, he created a package, added some database support and called it PHP/FI (Form
Interpretation).
In 1995, it was called the Personal Home Page Tool then was released as version2 with a name
called PHP/FI (a form interpreter responsible for analyzing queries). In mid of 1997, more than
50,000 websites began using PHP and in October, 1998, there was an increase in the number of
websites using PHP which was about 100,000.
In 2000, there was a release of PHP 4.0.2. And currently over 1,000,000 sites in the whole world
are using PHP.
4.2 HTML
HTML (Hypertext Markup Language) is the set of markup symbols or codes inserted in a file
intended for display on a World Wide Web browser page. The markup tells the Web browser how
to display a Web page's words and images for the user. Each individual markup code is referred to
as an element (but many people also refer to it as a tag). Some elements come in pairs that
indicate when some display effect is to begin and when it is to end.
Cascading Style Sheets (CSS) are a collection of rules we use to define and modify web pages.
CSS are similar to styles in Word. CSS allow Web designers to have much more control over
their pages look and layout. For instance, you could create a style that defines the body text to be
Verdana, 10 point. Later on, you may easily change the body text to Times New Roman, 12 point
by just changing the rule in the CSS. Instead of having to change the font on each page of your
website, all you need to do is redefine the style on the style sheet, and it will instantly change on
all of the pages that the style sheet has been applied to. With HTML styles, the font change would
be applied to each instance of that font and have to be changed in each spot.
CSS can control the placement of text and objects on your pages as well as the look of those
objects.
HTML information creates the objects (or gives objects meaning), but styles describe how the
objects should appear. The HTML gives your page structure, while the CSS creates the
“presentation”. An external CSS is really just a text file with a .css extension. These files can be
created with Dreamweaver, a CSS editor, or even Notepad.
The best practice is to design your web page on paper first so you know where you will want to
use styles on your page. Then you can create the styles and apply them to your page.
Java script
Contents:
Use case diagram
Class Diagram
Sequence Diagram
Data flow diagram
Use case diagram consists of use cases and actors and shows the interaction
between them. The key points are:
The main purpose is to show the interaction between the use cases and the actor.
The use cases are the functions that are to be performed in the module.
Manage Movie
Manage Users
Manage Booking
ADMIN SYSTEM
Manage Category
Fig.5.1
Book Ticket
Cancel Ticket
Fig.5.2
USER SYSTEM
DFD Level 1
ER DIAGRAM
Sequence Diagram For Administrator:-
Login Application Database
Login
:Request
:Validate()
:executeQuery()
Administrator Response
Show Result
Fig.5.4
Login
:Request
:Validate()
User
:executeQuery()
Response
Show Result
Fig.5.5
CHAPTER # 6
Coding
HOME PAGE CODING
</span>
</div>
</div>
</div>
</section>
<!--//grids-sec1-->
<!--grids-sec2-->
<section class="w3l-grids">
<div class="grids-main py-5">
<div class="container py-lg-3">
<div class="headerhny-title">
<div class="w3l-title-grids">
<div class="headerhny-left">
<h3 class="hny-title">New Releases</h3>
</div>
<div class="headerhny-right text-lg-right">
<h4><a class="show-title" href="movielist.php">Show all</a></h4>
</div>
</div>
</div>
<div class="owl-three owl-carousel owl-theme">
<!-- start of movie -->
<?php foreach(allrecords("movie order by mid desc") as $m) { ?>
<div class="item vhny-grid">
<div class="box16 mb-0">
<a href="mdetails.php?mid=<?= $m["mid"] ?>">
<figure>
<img class="img-fluid" style="height:350px;" src="<?=
$m["poster"] ?>" alt="">
</figure>
<div class="box-content">
<h4> <span class="post"><span class="fa fa-clock-o"> </span> 2
Hr 4min
</span>
</div>
<?php } ?>
<!-- end of movie -->
</div>
</div>
</div>
</section>
<!--grids-sec2-->
<!--mid-slider -->
<section class="w3l-mid-slider position-relative">
<div class="companies20-content">
<div class="owl-mid owl-carousel owl-theme">
<div class="item">
<li>
<div class="slider-info mid-view bg bg2">
<div class="container">
<div class="mid-info">
<span class="sub-text">Comedy</span>
<h3>Jumanji: The Next Level</h3>
<p>2019 ‧ Comedy/Action ‧ 2h 3m</p>
<a class="watch" href="genre.html"><span class="fa fa-play"
aria-hidden="true"></span>
Watch Trailer</a>
</div>
</div>
</div>
</li>
</div>
<div class="item">
<li>
<div class="slider-info mid-view mid-top1 bg bg2">
<div class="container">
<div class="mid-info">
<span class="sub-text">Adventure</span>
<h3>Dolittle</h3>
<p>2020 ‧ Family/Adventure ‧ 1h 41m</p>
<a class="watch" href="genre.html"><span class="fa fa-play"
aria-hidden="true"></span>
Watch Trailer</a>
</div>
</div>
</div>
</li>
</div>
<div class="item">
<li>
<div class="slider-info mid-view mid-top2 bg bg2">
<div class="container">
<div class="mid-info">
<span class="sub-text">Action</span>
<h3>Bad Boys for Life</h3>
<p>2020 ‧ Comedy/Action ‧ 2h 4m</p>
<a class="watch" href="genre.html"><span class="fa fa-play"
aria-hidden="true"></span>
Watch Trailer</a>
</div>
</div>
</div>
</li>
</div>
</div>
</div>
</section>
<!-- //mid-slider-->
<!--/tabs-->
<!-- //tabs-->
<?php
if (isset($_SESSION["userid"])) {
?>
<div class="row">
<div class="col-sm-8">
<form method="post" action="seatbook.php">
<input type="hidden" name="mid" value="<?= $_GET["mid"] ?>">
<div class="form-group form-row">
<label class="col-sm-4 col-form-label">Choose Date</label>
<div class="col-sm-8">
<input type="date" class="form-control" name="bdate"
placeholder="Your Name">
</div>
</div>
<div class="form-group form-row">
<label class="col-sm-4 col-form-label">Choose Theatre</label>
<div class="col-sm-8">
<select class="form-control" name="tid">
<?php foreach (allrecords("theatre") as $t) { ?>
<option value="<?= $t["tid"] ?>"><?= $t["tname"] ?>-<?=
$t["location"] ?></option>
<?php } ?>
</select>
</div>
</div>
<div class="form-group form-row">
<label class="col-sm-4 col-form-label">Choose Show</label>
<div class="col-sm-8">
<select class="form-control" name="sid">
<?php foreach (allrecords("shows") as $s) { ?>
<option value="<?= $s["id"] ?>"><?= $s["showname"] ?>-<?=
$s["showtime"] ?></option>
<?php } ?>
</select>
</div>
</div>
<div class="form-group form-row">
<label class="col-sm-4 col-form-label">Ticket Price(per head)</label>
<div class="col-sm-8">
<input type="number" readonly="readonly" required class="form-
control" value="100">
</div>
</div>
<input type="submit" class="btn btn-success my-2" value="Book
Now"></a>
</form>
</div>
</div>
<?php
} else {
?>
<h4 class="d-inline-block" style="font-style:
italic;color:red;padding:10px;">Please login to book ticket</h4>
<a href="login.php" class="btn btn-primary btn-sm px-3">Login</a>
<?php
}
?>
</div>
</div>
</div>
<?php include_once 'newfooter.php'; ?>
<?php
include_once 'newheader.php';
include_once 'dbfun.php';
$cid=$_SESSION["userid"];
?>
<style>
td{
color:var(--theme-title);
}
</style>
<div class="jumbotron bg-dark text-white rounded-0" style="margin-top: 70px;">
<h2 class="heading">Booking History</h2>
</div>
<div class="container">
<div class="form-group">
<label>Breakfast :      </label>
<input type="radio" name="breakfast" value="Yes" id="r18">
<label for="r18" class="lbl">Yes</label>
<input type="radio" name="breakfast" value="No" id="r19">
<label for="r19" class="lbl">No</label>
</div>
<div class="form-group">
<label>Lunch :        </label>
<input type="radio" name="lunch" value="Yes" id="r20">
<label for="r20" class="lbl">Yes</label>
<input type="radio" name="lunch" value="No" id="r21">
<label for="r21" class="lbl">No</label>
</div>
<div class="form-group">
<label>Dinner :        </label>
<input type="radio" name="dinner" value="Yes" id="r22">
<label for="r22" class="lbl">Yes</label>
<input type="radio" name="dinner" value="No" id="r23">
<label for="r23" class="lbl">No</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-success btn-sm float-right" value="Register PG
Building">
</div>
</form>
</div>
</div>
</div>
<?php include_once 'dfooter.php'; ?>
MANAGE THEATRE PAGE CODING
<?php
include_once 'dbfun.php';
include_once 'dheader.php';
?>
<div class="container-fluid">
<div class="row">
<div class="col-sm-7">
<h4 class="heading">Theatres</h4>
<table class="table table-bordered table-sm">
<thead>
<tr>
<th>Theatre Id</th>
<th>Theatre Name</th>
<th>Theatre Location</th>
<th>Capacity</th>
</tr>
</thead>
<tbody>
<?php foreach (allrecords("theatre") as $r) { ?>
<tr>
<td><?= $r["tid"] ?></td>
<td><?= $r["tname"] ?></td>
<td><?= $r["location"] ?></td>
<td><?= $r["seats"] ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<div class="col-sm-5">
<h4>Add New Theatre</h4>
<form method="post" action="save_theatre.php">
<div class="form-group">
<label>Theatre Name</label>
<input type="text" name="tname" class="form-control">
</div>
<div class="form-group">
<label>Theatre Location</label>
<input type="text" name="location" class="form-control">
</div>
<div class="form-group">
<label>Theatre Capacity</label>
<input type="text" name="seats" class="form-control">
</div>
<input type="submit" value="Save Theatre" class="btn btn-primary">
</form>
</div>
</div>
</div>
<?php
include_once 'dfooter.php';
?>
CHAPTER # 7
Output screens
HOME PAGE
Besides the above achievements and the successful completion of the project, we
still feel the project has some limitations, listed as below:
FUTURE SCOPE
This web application involves almost all the features of the online movie ticket booking. The
future implementation will be online help for the customers and chatting with website
administrator.
CONCLUSION
The project entitled “Online Movie Ticket Booking System” is developed using HTML, CSS and
Bootstrap as front end and PHP with MySQL database in back end to computerize the process of
online movie ticket booking. This project covers only the basic features required.
.
Bibliography
FOR PHP INSTALLATION
http://www.php.net/
www.developer.com
www.15seconds.com
FOR MY SQL
http://www.mysql.com/
FOR CSS
http://cssed.sourceforge.net/
FOR APACHE
http://www.apache.org/
http://www.w3schools.com/default.asp
http://en.wikipedia.org/
REFERENCE BOOKS