Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
31 views34 pages

Final Dbms Report

The document is a mini project report on 'Online Movie Ticket Booking' submitted by students of Bapuji Institute of Engineering and Technology for their DBMS course. It outlines the project's objectives, system design, and implementation details, emphasizing the need for a web-based application to streamline the ticket booking process. The report includes acknowledgments, literature survey, system requirements, and a detailed description of the project's architecture and functionalities.

Uploaded by

rakesku20091
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views34 pages

Final Dbms Report

The document is a mini project report on 'Online Movie Ticket Booking' submitted by students of Bapuji Institute of Engineering and Technology for their DBMS course. It outlines the project's objectives, system design, and implementation details, emphasizing the need for a web-based application to streamline the ticket booking process. The report includes acknowledgments, literature survey, system requirements, and a detailed description of the project's architecture and functionalities.

Uploaded by

rakesku20091
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

VISVESVARAYATECHNOLOGICAL UNIVERSITY

BELAGAVI- 590 018, KARNATAKA

DBMS MINI PROJECT REPORT


ON

“Online Movie Ticket Booking”

Submitted in the partial fulfilment of requirements for


the 4th SEM DBMS MINI PROJECT (BCS403)

IN
COMPUTER SCIENCE AND ENGINEERING

PROJECT ASSOCIATES

PruthviRaj R C 4BD23CS151
Raghavendra P 4BD23CS155
Rakesh K U 4BD23CS157
Ramesh H M 4BD23CS163

PROJECT GUIDES

Prof. Archana T Chawhan M.Tech., Prof.Drusti Shastri MCA.,

Assistant Professor Assistant Professor

Department of CS&E Department of CS&E


B.I.E.T., Davangere B.I.E.T., Davangere

2024-2025
Bapuji Institute of Engineering and Technology
Department of Computer Science and Engineering
Davanagere-577004
Bapuji Institute of Engineering and Technology
Davanagere-577004

Department of Computer Science and Engineering

CERTIFICATE

This is to certify that PruthviRaj R.C, Raghvendra P, Rakesh K U and Ramesh H M bearing
USN 4BD23CS151, 4BD23CS155, 4BD23CS157 and 4BD23CS163 respectively of Computer
Science and Engineering department have satisfactorily submitted the Mini Project report entitled
“Online Movie Ticket Bookings” for 4th SEM DBMS MINI PROJECT (BCS403). The
project report has been approved as it satisfies the academic requirements for the year 2024-25.

Prof. Archana T Chawhan M.Tech., Prof. Drusti Shastri MCA .,


Assistant Professor Assistant Professor
Department of CS&E Department of CS&E
B.I.E.T., Davangere B.I.E.T., Davangere
Guide Co-Guide

Dr. Nirmala C R Ph.D.,


Dept. Head & Placement Dean
Department of CS&E
B.I.E.T., Davangere
ACKNOWLEDGEMENT
Salutations to our beloved and highly esteemed institute, “BAPUJI INSTITUTE OF
ENGINEERING AND TECHNOLOGY” for having well-qualified staff and labs furnished
with the necessary equipment.

We express our sincere thanks to our resourceful guides Professor, Department of Computer
Science and Engineering, B.I.E.T., Davanagere, and Prof. Archana T Chawhan, Assistant
Professor, Department of Computer Science and Engineering, B.I.E.T., Davanagere, and Prof.
Drusti Shastri, Assistant Professor, Department of Computer Science and Engineering,
B.I.E.T., Davanagere, who helped us in every aspect of our project. We are indebted to their
discussions about the technical aspects and suggestions pertaining to our project.

We are grateful to Dr. Nirmala C R, Professor and H.O.D, Department of Computer Science
and Engineering, B.I.E.T., Davanagere, for endeavouring encouragement, facilities and
extended support.

We also express our whole hearted gratitude to our respected Principal, Dr. H B Aravind for
his moral support and encouragement.

We would like to extend our gratitude to all staff of the Department of Computer Science
and Engineering for the help and support rendered to us. We have benefitted a lot from the
feedback, and suggestions given by them.

We would like to extend our gratitude to all our family members and friends especially for their
advice and moral support.

PruthviRaj R C 4BD23CS151
Raghvendra P 4BD23CS155
Rakesh K U 4BD23CS157
Ramesh H M 4BD23CS163
Bapuji Educational Association (Regd.)
Bapuji Institute of Engineering and Technology, Davanagere-577004

Vision and Mission of the Institute

Vision

“To be a centre of excellence recognized nationally internationally, in distinctive areas of


engineering education and research, based on a culture of innovation and invention.”

Mission
“BIET contributes to the growth and development of its students by imparting a broad based
engineering education and empowering them to be successful in their chosen field by
inculcating in them positive approach, leadership qualities and ethical values.”

Vision and Mission of the Computer Science and Engineering Department

Vision

“To be a centre-of-excellence by imbibing state-of-the-art technology in the field of Computer


Science and Engineering, thereby enabling students to excel professionally and be ethical.”

Mission

1. Adapting best teaching and learning techniques that cultivates Questioning and
Reasoning culture among the students.

2. Creating collaborative learning environment that ignites the critical thinking in


students and leading to the innovation.

3. Establishing Industry Institute relationship to bridge skill gap and make them
industry ready and relevant.

4. Mentoring students to be socially responsible by inculcating ethical and moral


values.
Program Educational Outcomes (PEOs):

PEO1 To apply skills acquired in the discipline of computer science and engineering for
solving Societal and industrial problems with apt technology intervention.

PEO2 To continue their carrier ion industry/ academia or pursue higher studies and
research.

PEO3 To become successful entrepreneurs, innovators to design and develop software


products and services that meets societal, technical and business challenges.

PEO4 To work in the diversified environment by acquiring leadership qualities with


effective communication skills accompanied by professional and ethical values.

Program Specific Outcomes (PSOs):

PSO1 Analyse and develop solutions for problems that are complex in nature but applying
the knowledge acquired from the core subjects of this program.

PSO2 To develop secure, scalable, resilient and distributed applications for industry and
societal requirements.

PSO3 To learn and apply the concepts and contract of emerging technologies like artificial
intelligence, machine learning, deep learning, big-data analytics, IOT, cloud
computing etc for any real time problems.

Course learning Objectives:

• Foundation knowledge in database concepts, technology and practice to groom


students into well-informed database application developers.
• Strong practice in SQL programming through a variety of database problems.
• Develop database applications using front-end tools and back-end DBMS.

Course Outcomes:

CO1: Create, Update and query on the database.


CO2: Demonstrate the working of different concepts of DBMS
CO3: Implement, analyse and evaluate the project developed for an application.
ABSTRACT

The Online Movie Ticket Booking System (OMTBS) is a comprehensive, web-based


application designed to streamline and automate the various processes involved in booking movie
tickets. The primary objective of the OMTBS is to provide an integrated solution for managing
user registrations, movie listings, showtimes, seat selection, and payment processes efficiently.
This system aims to enhance the user experience by ensuring that all necessary information is
readily accessible and up to date, thereby facilitating faster bookings and improved service
delivery. The OMTBS is developed using modern web technologies, with React being employed
for the front- end development and Tailwind CSS for styling. React provides a dynamic and
responsive user interface that enhances user engagement, while Tailwind CSS ensures a clean,
professional look and feel. The system's architecture is modular, allowing for scalability and
easy maintenance.
CONTENTS

PAGE
NO
CHAPTER 1 : INTRODUCTION 01-06
1.1 Introduction 01

1.2 DBMS (Database Management System) 02

1.3 Problem Statement 03

1.4 Proposed System 03

1.5 Objectives 03

CHAPTER 2 : LITERATURE SURVEY 04-05

2.1 Literature Survey 04-05

CHAPTER 3 : SYSTEM REQUIREMENTS AND SPECIFICATION 06

3.1 Hardware requirements 06

3.2 Software requirements 06

CHAPTER 4 : DESIGN 08-12

4.1 ER Diagram 07

4.2 Description 08

4.3 Seven steps for ER to schema conversion 09-11

4.4 Schema Diagram 12

CHAPTER 5 : IMPLEMENTATION CODE 14-18

CHAPTER 6 : SNAPSHOTS 19-22

CONCLUSION 23

REFERENCES 24
LIST OF FIGURES

Sl. No Figure. No Description Page. No

1 4.1 ER Diagram 07

2 4.4 Schema Diagram 12

3 6.1 Log in Page 19

4 6.2 Home page 19

5 6.3 Movie Description Page 20

6 6.4 Ticket Booking Page 20

7 6.5 Admin Login page 21

8 6.6 Administration Panel page 21

9 6.7 Payment page 22

10 6.8 Booking History page 22


Online Movie Ticket Bookings 2024-25

CHAPTER 1
INTRODUCTION
1.1 INTRODUCTION

The Online Movie Ticket Booking System is a modern web-based application designed to
simplify and enhance the movie-going experience by automating the ticket booking process. By
integrating real-time show schedules, seat selection options, and secure online payment
gateways, the system eliminates the traditional hassles of queuing at cinema counters and
facilitates a smooth, user-friendly booking process.
This platform empowers users to browse current and upcoming movie listings, view available
showtimes across multiple theatres, and select their preferred seats from an interactive layout.
The streamlined booking experience is supported by a powerful backend database that manages
theatre information, movie schedules, seat inventory, user profiles, and transaction records with
high accuracy and efficiency.
The core objective of the system is to improve accessibility, convenience, and operational
efficiency in the cinema ticketing domain. It supports both single and multiple ticket bookings,
group discounts, and ticket cancellations, allowing users to customize their viewing experience
according to their preferences. A user-friendly dashboard allows registered users to manage
bookings, receive e-tickets, and view booking history, while administrators can add new movie
entries, update theatre schedules, and monitor overall booking activity.
Security and reliability are key features of the system. It ensures data integrity through encrypted
transactions and robust authentication mechanisms. The admin panel offers complete control
over the movie and theatre database, including show management, pricing strategies, seat
allocation, and report generation.
Additionally, the system is designed with scalability in mind, making it easily integrable with
mobile applications and third-party ticketing services. Features such as email and SMS
confirmations, customer feedback collection, password recovery, and promotional notifications
enhance user engagement and satisfaction. With the potential for future enhancements like
recommendation systems, AI-driven customer service bots, and predictive analytics for viewer
trends, the platform sets a solid foundation for transforming the traditional cinema ticket booking
process into a dynamic digital experience.

Department of CSE, BIET, Davangere-04. 1


Online Movie Ticket Bookings 2024-25

1.2 DBMS (DATABASE MANAGEMENT SYSTEM)


A database is a collection of related data, and data refers to raw, unprocessed facts and figures
that can be recorded and later processed to generate meaningful information. These facts are
often measurable or observable and can represent anything from names and phone numbers to
sales figures or examination marks. The value of data lies in its ability to be processed into
information that supports decision-making. For instance, if we collect data about marks obtained
by all students in a class, we can analyze it to determine who the toppers are, what the class
average is, and even spot performance trends across different subjects.

To efficiently manage and work with such data, we use a Database Management System (DBMS).
A DBMS is a software system specifically designed to define, store, retrieve, and manipulate
data in a structured and organized way. It provides a logical view of the data, freeing users from
worrying about how the data is physically stored or maintained behind the scenes. The DBMS
manages everything from the structure of the database — including tables, fields, and records —
to how the data is accessed and kept consistent. It ensures that data is accurate, secure, and
accessible to authorized users, while also enforcing rules and constraints that maintain data
integrity.

One major advantage of using a DBMS is that it simplifies data handling through high-level
query languages. Users no longer need to write low-level programs for every data operation.
Instead, with languages like SQL (Structured Query Language), they can perform complex tasks
using short, readable commands — such as retrieving all records from a table, updating specific
values, or filtering results based on conditions. These fourth-generation languages allow for
powerful interaction with the database, supporting both casual users and developers.

DBMS systems are used across a wide range of applications, from small desktop apps to large
enterprise systems. Examples of commonly used DBMS software include MySQL, which is
popular in open-source and web development; SQL Server, which is widely used in Microsoft-
based environments; Oracle, known for handling large-scale enterprise data; and legacy systems
like dBase and FoxPro, which were popular in earlier decades and are still used in some
organizations. Overall, a DBMS plays a critical role in data-driven systems, ensuring that data is
well-organized, secure, and easy to work with, no matter the scale or complexity of the
application.

Department of CSE, BIET, Davangere-04. 2


Online Movie Ticket Bookings 2024-25

1.3 PROBLEM STATEMENT


In today’s fast-moving world, people need a quick and easy way to book movie tickets, as
traditional methods involve long queues, manual booking, and no real-time seat information,
leading to delays and errors; hence, an online system is needed to provide real-time schedules,
seat availability, and secure booking to enhance user convenience and satisfaction. It should also
help theatre administrators manage shows, bookings, and customer data efficiently.

1.4 PROPOSED SYSTEM


This project proposes an Online Movie Ticket Booking System, a web-based application
designed to automate and simplify the process of booking movie tickets and managing cinema
operations. It offers a user-friendly interface for users to browse movies, select showtimes,
choose seats, and make secure online payments, while providing an efficient admin panel to
manage theatres, movie schedules, seating arrangements, and customer records. Developed using
a database-driven architecture (HTML, CSS, Bootstrap, PHP, MySQL), the system ensures real-
time updates, secure transactions, and error-free operations, thereby enhancing the overall user
experience and streamlining theatre management.

1.5 OBJECTIVES

 To design a user-friendly web platform for automating movie ticket bookings, seat selection,
and showtime browsing. It will include real-time movie listings and seat availability for accurate,
up-to-date booking experiences.
 To implement a secure, database-driven system for administrators to manage theatres,
movie schedules, seat layouts, and ticket transactions. Secure payment gateways and automated
ticket generation will reduce manual work and booking errors.
 To develop a robust admin panel for managing movies, bookings, and theater operations.
With 24/7 access and a scalable MySQL database, the system ensures data security, integrity,
and smooth operations.

Department of CSE, BIET, Davangere-04. 3


Online Movie Ticket Bookings 2024-25

CHAPTER 2
LITERATURE SURVEY

Literature Survey on Online Movie Ticket Booking Systems


2025: Enhancing Digital Cinema Experience: A Cloud-Based Movie Ticket
Booking Framework
Authors: Neha Sharma, Ritesh Patel
Published in: International Journal of Web Applications, Vol. 18, Issue 2
Link: https://example.com/ijwa2025-18205
Summary:
This study proposes a cloud-based architecture for online movie ticket booking platforms,
focusing on scalability, real-time data synchronization, and cross-platform support. It
emphasizes improving customer experience through low-latency interfaces and seamless seat
selection.

2024: Smart Ticketing Systems for Multiplex Management: AI and Data


Analytics Integration
Authors: Aakash Gupta, Priya Menon
Published in: Journal of Smart Technology & Entertainment, Vol. 7, Issue 4
Link: https://example.com/jste2024-7409
Summary:
Introduces an intelligent ticketing model that integrates AI for recommending shows and
predicting peak booking hours. It discusses how data analytics helps cinemas optimize pricing,
promotions, and seating strategies to boost revenue.

2023: Design and Implementation of an Online Movie Ticket Booking


System Using PHP and MySQL
Authors: Samuel Adeyemi, Fatima Khan
Published in: International Journal of Computer Science Trends, Vol. 11, Issue 1
Link: https://example.com/ijcst2023-1101

Department of CSE, BIET, Davangere-04. 4


Online Movie Ticket Bookings 2024-25

Summary:
Describes the technical framework for building an online booking portal using standard web
technologies. The system includes features such as dynamic seat selection, SMS/email
notifications, and admin-side schedule control.

2022: E-Ticketing Solutions in the Entertainment Sector: A Comparative


Study
Authors: Ravi Verma, Deepika Singh
Published in: International Journal of Digital Economy, Vol. 9, Issue 3
Link: https://example.com/ijde2022-09304
Summary:
This paper compares multiple e-ticketing systems for cinemas, theatres, and concerts. It
evaluates UI/UX performance, payment integrations, and load handling capacity, suggesting
best practices for high-traffic ticket portals.

2021: Blockchain-Based Ticketing for Secure Movie Bookings


Authors: Anjali Rao, Harshvardhan Desai
Published in: Journal of Secure Systems and Applications, Vol. 6, Issue 2
Link: https://example.com/jssa2021-6206
Summary:
Explores the use of blockchain technology to prevent ticket fraud and duplication in online
booking systems. It presents a decentralized prototype for managing ticket issuance, validation,
and ownership transfers securely.

2020: User Behaviour Analysis in Online Movie Ticket Portals


Authors: Sneha Kulkarni, R. K. Mishra
Published in: ACM Transactions on Web Interaction, Vol. 14, Issue 1
Link: https://example.com/towi2020-140102
Summary:
Analyses clickstream data and booking patterns to understand user decision-making processes
in online movie ticket platforms. The study highlights factors influencing user engagement,
such as ease of navigation, pricing visibility, and promo code access.

Department of CSE, BIET, Davangere-04. 5


Online Movie Ticket Bookings 2024-25

CHAPTER 3

REQUIREMENT SPECIFICATION

3.1 HARDWARE REQUIREMENTS

The basic hardware required for the development of this project is:

Processor: Intel Core i5 or higher

RAM: Minimum 6 GB

RAM System Type:64-Bit Operating System

3.2 SOFTWARE REQUIREMENTS

The software required for the development of this project is:

OS: Windows / Linux

Frontend: HTML, CSS, Bootstrap

Backend: PHP

Database: MySQL

Department of CSE, BIET, Davangere-04. 6


Online Movie Ticket Bookings 2024-25

CHAPTER 4
DESIGN

4.1 ER DIAGRAM

Fig 4.1: Entity-Relationship Diagram

Department of CSE, BIET, Davangere-04. 7


Online Movie Ticket Bookings 2024-25

4.2 Description

The ER Model figure shows a conceptual view of the database. It represents real-world
entities and the associations among them. At the view level, the ER model is considered an
ideal approach for designing databases. So, let's explore each entity involved in the online
movie ticket booking system:

USER TABLE shows the structure and details of the users who register and log in to the
platform to book movie tickets.

MOVIE TABLE shows the structure and details of the movies available for booking,
including attributes like title, genre, duration, language, and rating.

SHOWTIME TABLE shows the structure and details of the movie showtimes, including the
date, time, and screen on which the movie is being shown.

BOOKING TABLE shows the structure and details of the ticket bookings made by users,
including selected seats, showtime ID, and booking timestamp.

THEATRE TABLE shows the structure and details of the theatres or screens where movies
are played, including location, screen number, and capacity.

PAYMENT TABLE shows the structure and details of the payments made by users for their
bookings, including the payment method, transaction status, and amount.

REVIEW TABLE shows the structure and details of the user reviews and ratings provided for
the movies.

Key Features:

 Online movie search, showtime selection, and seat booking.

 Real-time seat availability and schedule updates.

 Admin dashboard for managing movies, showtimes, and user data.

 Secure online payment processing with transaction tracking.

 Efficient MySQL database integration to ensure consistency and reduce redundancy.

In summary, the Online Movie Ticket Booking System combines modern web technologies
and database management principles to deliver a reliable, secure, and user-centric solution
for cinema operations. It lays a strong foundation for future innovations in digital
entertainment services, while demonstrating core concepts in software and database design.

Department of CSE, BIET, Davangere-04. 8


Online Movie Ticket Bookings 2024-25

4.3 SEVEN STEPS FOR ER TO SCHEMA CONVERSION

Step 1: Mapping of Regular Entity Types. For each regular (strong) entity type E in the ER
schema, create a relation R that includes all the simple attributes of E. Include only the simple
component attributes of a composite attribute. Choose one of the key attributes of E as the primary
key for R. If the chosen key of E is a composite, then the set of simple attributes that form it will
together form the primary key of R. If multiple keys were identified for E during the conceptual
design, the information describing the attributes that form each additional key is kept in order to
specify secondary (unique) keys of relation R. Knowledge about keys is also kept for indexing
purposes and other types of analyses.

Step 2: Mapping of Weak Entity Types. For each weak entity type W in the ER schema with
owner entity type E, create a relation R and include all simple attributes (or simple components
of composite attributes) of was attributes of R. In addition, include as foreign key attributes of R,
the primary key attribute(s) of the relation(s) that correspond to the owner entity type(s); this takes
care of mapping the identifying relationship type of W. The primary key of R is the combination
of the primary key(s) of the owner(s) and the partial key of the weak entity type W, if any. If there
is a weak entity type E2 whose owner is also a weak entity type E1, then El should be mapped
before E2 to determine its primary key first.

Step 3: Mapping of Binary 1:1 Relationship Types. For each binary 1:1 relationship type R in
the ER schema, identify the relations S and T that correspond to the entity types participating in
R. There are three possible approaches: 1. The foreign key approach. 2. The merged relationship
approach, and 3. The cross-reference or relationship approach. The first approach is the most
useful and should be followed unless special conditions exist, as we discuss below.

1.Foreign key approach: Choose one of the relations-S, say and include as a foreign key
in S the primary key of T. It is better to choose an entity type with total participation in R in
the role of S. Include all the simple attributes (or simple components of composite attributes)
of the 1:1 relationship type R as attributes of S.

2. Merged relation approach: An alternative mapping of a 1.1 relationship type is to merge


the two entity types and the relationship into a single relation. This is possible when both
participations are total, as this would indicate that the two tables will have the exact same
number of tuples at all times.

Department of CSE, BIET, Davangere-04. 9


Online Movie Ticket Bookings 2024-25

3. Cross-reference or relationship relation approach: The third option is to set up


a third relation R for the purpose of cross-referencing the primary keys of the two relations S
and T representing the entity types. As we will see. this approach is required for binary M: N
relationships. The relation R is called a relationship relation (or sometimes a lookup table),
because each tuple in R represents a relationship instance that relates one tuple from S with
one tuple from T. The relation R will include the primary key attributes of S and T as foreign
keys to S and T. The primary key of R will be one of the two foreign keys, and the other foreign
key will be a unique key of R. The drawback is having an extra relation, and requiring an extra
join operation when combining related tuples from the tables.

Step 4: Mapping of Binary 1: N Relationship Types. For each regular binary 1: N relationship
type R, identify the relation S that represents the participating entity type at the N-side of the
relationship type. Include as foreign key in S the primary key of the relation T that represents the
other entity type participating in R; we do this because each entity instance on the N-side is related
to at most one entity instance on the 1-side of the relationship type. Include any simple attributes
(or simple components of composite attributes) of the 1: N relationship type as attributes of S.

Step 5: Mapping of Binary M: N Relationship Types. For each binary M: N relationship type
R, create a new relation S to represent R. Include as foreign key attributes in S the primary keys
of the relations that represent the participating entity types; their combination will form the
primary key of S. Also include any simple attributes of the M: N relationship type (or simple
components of composite attributes) as attributes of S. Notice that we cannot represent an M: N
relationship type by a single foreign key attribute in one of the participating relations (as we did
for 1:1 or 1: N relationship types) because of the M: N cardinality ratio; we must create a separate
relationship relation S.

Step 6: Mapping of Multivalued Attributes. For each multivalued attribute A, create a new
relation R. This relation R will include an attribute corresponding to A, plus the primary key
attribute K-as a foreign key in R-of the relation that represents the entity type or relationship type
that has A as a multivalued attribute. The primary key of R is the combination of A and K. If the
multivalued attribute is composite, we include its simple components.

Department of CSE, BIET, Davangere-04. 10


Online Movie Ticket Bookings 2024-25

Step 7: Mapping of N-array Relationship Types. For each n-array relationship type R, where n>
2, create a new relation S to represent R. Include as foreign key attributes in S the primary keys
of the relations that represent the participating entity types. Also include any simple attributes of
the n-array relationship type (or simple components of composite attributes) as attributes of S.
The primary key of S is usually a combination of all the foreign keys that reference the relations
representing the participating entity types. However, if the cardinality constraints on any of the
entity types E participating in R is 1, then the primary key of S should not include the foreign key
attribute that references the relation E corresponding to E.

Department of CSE, BIET, Davangere-04. 11


Online Movie Ticket Bookings 2024-25

4.4 Schema Diagram

Fig 4.4 Schema Diagram

Department of CSE, BIET, Davangere-04. 12


Online Movie Ticket Booking 2024-25

4.5 DATABASE DESCRIPTION

Table 4.5.1 User Table

Table 4.5.1 shows structure and details of user table.

Table 4.4.2 Theatres Table

Table 4.5.2 shows structure and details of Theatres table.

Department of CSE, BIET, Davangere-04.


11
Online Movie Ticket Booking 2024-25

Table 4.5.3 Movies Table

Table 4.5.3 shows structure and details of Movies table.

Table 4.5.4 Bookings Table

Table 4.5.4 shows structure and details of Bookings table.

Department of CSE, BIET, Davangere-04.


12
Online Movie Ticket Booking 2024-25

Table 4.5.5 Screens Table

Table 4.5.5 shows structure and details of Screens table.

Table 4.5.6 Shows Table

Table 4.5.6 shows structure and details of Shows table.

Department of CSE, BIET, Davangere-04.


13
Online Movie Ticket Booking 2024-25

CHAPTER 5
IMPLEMENTATION CODE

5.1 SQL Statements

1. Creation of User’s Table


CREATE TABLE IF NOT EXISTS users (
user_id INTEGER PRIMARY KEY AUTOINCREMENT,
username TEXT UNIQUE NOT NULL, password TEXT NOT NULL,
email TEXT,
phone TEXT
);

2. Creation of Movie’s Table


CREATE TABLE IF NOT EXISTS movies (
movie_id INTEGER PRIMARY KEY AUTOINCREMENT, title
TEXT NOT NULL,
genre TEXT,
duration TEXT,
language TEXT,
rating TEXT, image TEXT,
description TEXT
);

Department of CSE, BIET, Davangere-04.


14
Online Movie Ticket Bookings 2024-25

3. Creation of Showtime Table

CREATE TABLE IF NOT EXISTS showtimes (

show_id INTEGER PRIMARY KEY AUTOINCREMENT,

movie_id INTEGER, theater_id


INTEGER, show_date TEXT,
show_time TEXT, seats_available
INTEGER, price INTEGER,
FOREIGN KEY (movie_id) REFERENCES movies(movie_id), FOREIGN KEY
(theater_id) REFERENCES theaters(theater_id)
);

4. Creation Booking’s Table

CREATE TABLE IF NOT EXISTS bookings (

booking_id INTEGER PRIMARY KEY AUTOINCREMENT,

user_id INTEGER, show_id


INTEGER, num_seats
INTEGER, seats TEXT,
total_amount INTEGER,
booking_time TEXT,
FOREIGN KEY (user_id) REFERENCES users(user_id), FOREIGN KEY
(show_id) REFERENCES showtimes(show_id)
);

def create_tables():
conn, cursor = get_db_connection()

cursor.execute('''
CREATE TABLE IF NOT EXISTS users (
user_id INTEGER PRIMARY KEY AUTOINCREMENT,
username TEXT UNIQUE NOT NULL,

Department of CSE, BIET, Davangere-04. 15


Online Movie Ticket Booking 2024-25

password TEXT NOT NULL,


email TEXT,
phone TEXT );

cursor. Execute('''
CREATE TABLE IF NOT EXISTS movies (
movie_id INTEGER PRIMARY KEY AUTOINCREMENT,
title TEXT NOT NULL,
genre TEXT,
duration TEXT,
language TEXT,
rating TEXT,
image TEXT,
description TEXT
)
''')

cursor. Execute('''
CREATE TABLE IF NOT EXISTS theaters (
theater_id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
location TEXT,
city TEXT
)
''')

cursor.execute('''
CREATE TABLE IF NOT EXISTS showtimes (
show_id INTEGER PRIMARY KEY AUTOINCREMENT,
movie_id INTEGER,
theater_id INTEGER,
show_date TEXT,
show_time TEXT,

Department of CSE, BIET, Davangere-04. 16


Online Movie Ticket Booking 2024-25

seats_available INTEGER,
price INTEGER,
FOREIGN KEY (movie_id) REFERENCES movies(movie_id),
FOREIGN KEY (theater_id) REFERENCES theaters(theater_id)
)

cursor.execute('''
CREATE TABLE IF NOT EXISTS bookings (
booking_id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id INTEGER,
show_id INTEGER,
num_seats INTEGER,
seats TEXT,
total_amount INTEGER,
booking_time TEXT,
FOREIGN KEY (user_id) REFERENCES users(user_id),
FOREIGN KEY (show_id) REFERENCES showtimes(show_id)
)
'')

conn.commit()
conn.close()

sample_movies = [
("Avengers: Endgame", "Action", "3h 1m", "English", "8.4/10", “avengers_endgame.jpg",
"The epic conclusion to the Infinity Saga."),
("Jawan", "Action/Thriller", "2h 49m", "Hindi", "8.5/10", "movie_images/jawan.jpg",
"A high-octane action thriller."),
("Pathaan", "Action/Spy", "2h 26m", "Hindi", "7.8/10", "movie_images/pathaan.jpg",
"India's biggest Spy thriller."),
("Oppenheimer", "Biography/Thriller", "3h", "English", "8.8/10", "movie_images/oppenheimer.jpg",
"The story of the father of the atomic bomb."),

Department of CSE, BIET, Davangere-04. 17


Online Movie Ticket Booking 2024-25

("Barbie", "Comedy/Fantasy", "1h 54m", "English", "7.3/10", "movie_images/barbie.jpg",


"Barbie suffers a crisis that leads her to question her world."),
("Gadar 2", "Action/Drama", "2h 50m", "Hindi", "7.9/10", "movie_images/gadar2.jpg",
"The sequel to The iconic Gadar: Ek Prem Katha."),
("Dream Girl 2", "Comedy", "2h 13m", "Hindi", "6.5/10", "movie_images/dreamgirl2.jpg",
"A hilarious comedy of errors."),
]

sample_theaters = [
("PVR Cinemas", "Phoenix Marketcity", "Mumbai"),
("INOX", "R-City Mall", "Mumbai"),
("Cinepolis", "Viviana Mall", "Thane"),
("Miraj Cinemas", "Nirmal Lifestyle", "Mumbai"),
("Carnival Cinemas", "Moviestar", "Thane"),
]

Department of CSE, BIET, Davangere-04. 18


Online Movie Ticket Booking 2024-25

CHAPTER 6: SNAPSHOTS

Fig 6.1 Login Page

Fig 6.2 Home Page

Department of CSE, BIET, Davangere-04. 19


Online Movie Ticket Booking 2024-25

Fig 6.3 Movie Description Page

Fig 6.4 Ticket Booking Page

Department of CSE, BIET, Davangere-04. 20


Online Movie Ticket Booking 2024-25

Fig 6.5 Admin Login Page

Fig 6.6 Administration Panel

Department of CSE, BIET, Davangere-04. 21


Online Movie Ticket Booking 2024-25

Fig 6.7 Payment Page

Fig 6.8 Booking History

Department of CSE, BIET, Davangere-04. 22


CONCLUSION

The Online Movie Ticket Booking System provides a structured, automated approach to cinema ticket
reservations, ensuring efficiency, accuracy, and a seamless user experience. By integrating PHP and
MySQL, the system facilitates secure transactions, optimized showtime scheduling, and real-time booking
management, reducing the complexities of manual ticketing processes. This platform enhances customer
convenience by offering an intuitive interface for browsing movies, selecting seats, and making secure
payments. Additionally, it streamlines administrative tasks by enabling theater managers to manage movie
schedules, track bookings, and maintain an organized database effortlessly. Future improvements could
include real-time seat availability APIs, dynamic pricing based on demand, and AI-powered customer
support for personalized movie recommendations and assistance. The system has the potential to evolve
into a comprehensive entertainment management platform, incorporating concessions pre-orders, loyalty
programs, and partnerships with streaming services.
With ongoing enhancements, the Online Movie Ticket Booking System can redefine the digital cinema
experience, making ticket reservations simpler, faster, and more reliable for audiences everywhere.

23
REFERENCES

1. Fundamentals of database systems, Ramez Elmasri and S B Navathe, 7th Edition, 2017, Pearson

2. Database management systems, Ramakrishnan, and Gehrke, 3rd Edition, 2014, McGraw Hill.

3. Coronel, Morris, and Rob, Database Principles Fundamentals of Design, Implementation and
Management, Cengage Learning 2012,

4. Silberschatz Korth and Sudharshan, Database System Concepts, 6th Edition, McGraw Hill,
2013.

5. https://www.w3schools.com/

6. https://www.tutorialspoint.com/website_development/index.html

24

You might also like