0% found this document useful (0 votes)
224 views41 pages

Car Showroom Final Report

Uploaded by

Anagha M
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)
224 views41 pages

Car Showroom Final Report

Uploaded by

Anagha M
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/ 41

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

“Jnana Sangama”, Belagavi – 590018, Karnataka

A Mini Project Report

On

“CAR SHOWROOM MANAGEMENT SYSTEM”

Submitted in partial fulfillment of the requirement for the DBMS


Laboratory with Mini Project (18CSL58) of 5th semester
Bachelor of Engineering
in
Computer Science and Engineering

Submitted By :

ANAGHA.M (1GA19CS014)

DHRUTHI.S (1GA19CS046)

Under the Guidance of

Dr. Pramila B Mrs. Shruthi P


Associate Professor Assistant Professor
Dept. of CSE Dept. of CSE

2021-2022
CERTIFICATE

This is to certify that 5th Semester Mini Project entitled “CAR SHOWROOM
MANAGEMENT SYSTEM” is a bonafide work carried out by ANAGHA.M
(1GA19CS014), DHRUTHI.S(1GA19CS046) as a partial fulfillment for the award of
Bachelors Degree in Computer Science and Engineering for DBMS Laboratory with Mini
Project [18CSL58] as prescribed by Visvesvaraya Technological University, Belagavi
during the year 2021-2022.

--------------------- --------------------- ---------------------

Dr. Pramila B Mrs. Shruthi P Dr. Bhagyashri R Hanji

Associate Professor, Assistant Professor, Professor & Head,

Dept. of CSE, Dept. of CSE, Dept. of CSE,

GAT, Bengaluru. GAT, Bengaluru. GAT, Bengaluru.

External Exam

Name of the Examiner Signature with date

1._______________________ ________________

2._______________________ ________________
DECLARATION

We, ANAGHA M, bearing USN 1GA19CS014, DHRUTHI.S, bearing USN 1GA19CS046,


students of 5th Semester B.E, Department of Computer Science and Engineering, Global
Academy of Technology, Rajarajeshwari Nagar Bengaluru, declare that the Mini Project
entitled “CAR SHOWROOM MANAGEMENT SYSTEM” has been carried out by us and
submitted in partial fulfillment of the course requirements for the award of degree in Bachelor
of Engineering in Computer Science and Engineering from Visvesvaraya Technological
University, Belagavi during the academic year 2021-2022.

Anagha.M (1GA19CS014)

Dhruthi.S(1GA19CS046)

PLACE : Bengaluru

DATE : 04-02-2022
ABSTRACT
This Car showroom management system is designed for such owners and users who are
interested in cars. This system keeps track of all the cars along with their each and every single
detail. From the date of manufacture to up to what price can one negotiate while taking that
car, one can view all the data here. If someone is interested in buying the car, then he/she can
contact the retailer as well for the same, via the system.

This is a live project which was developed for a local CAR Agent. It is useful to the Agent to
maintain the Customers details, Sales Details, Company items and services and also CAR
Details. If any customer buy a CAR in loan that persons CAR will recognizes with the help of
CAR no. CAR Recognition System, which will cover the following modules The agent will
enter the CAR No It will help the user to search the CAR details and the required details of the
customer .The agent enters the customer details and maintain company details. Regarding the
registration module, it contains the information about newly joined User details like name of
the user, password etc. CAR Details module contains the details like Name of the CAR, send
from, send to etc. Billing and Payment Detail will contain the details like Actual Amount to
be paid, emi. Searching is having the details of the customer. Any agent will login and search
the details of the customer it will show all details like customer Details, CAR name, payment
type etc.

i
ACKNOWLEDGEMENT

The satisfaction and euphoria that accompany the successful completion of any task would be
incomplete without the mention of the people who made it possible and whose constant
encouragement and guidance crowned our efforts with success.

We consider ourselves proud, to be part of Global Academy of Technology family, the


institution which stood by our way in endeavors.

We express our deep and sincere thanks to our Principal Dr. N. Ranapratap Reddy for his
support.

We are grateful to Dr. Bhagyashri R Hanji, Professor and HOD, Dept of CSE who is source
of inspiration and of invaluable help in channelizing my efforts in right direction.

We wish to thank our internal guide Dr. Pramila B, Associate Professor and Mrs.Shruthi P,
Assistant Professor, Dept of CSE for guiding and correcting various documents with attention
and care. She has taken lot of pain to go through the document and make necessary corrections
as and when needed.

We would like to thank the faculty members and supporting staff of the Department of CSE,
GAT for providing all the support for completing the Project work.

Finally, we are grateful to our parents and friends for their unconditional support and help
during the course of our Project work.

ANAGHA.M (1GA19CS014)

DHRUTHI.S (1GA19CS046)

ii
TABLE OF CONTENTS

CHAPTER
TITLE PAGE
NO.
ABSTRACT i
LIST OF FIGURES ⅳ
1. INTRODUCTION 1
1.1 INTRODUCTION TO SQL 1
1.2 INTRODUCTION TO FRONTEND SOFTWARE 3
1.3 PROJECT REPORT OUTLINE 4
2. REQUIREMENT SPECIFICATION 5
2.1 SOFTWARE REQUIREMENTS 5

2.2 HARDWARE REQUIREMENTS 5


3. OBJECTIVE OF THE PROJECT 6
4. IMPLEMENTATION 8-24
4.1 ER DIAGRAM 10
4.2 MAPPING OF ER DIAGRAM TO SCHEMA DIAGRAM 10
4.3 SCHEMA DIAGRAM 12
4.4 CREATION OF TABLES 13
4.5 INSERTION OF TUPLES 15

4.6 CREATION OF TRIGGERS 22


4.7 CREATION OF STORED PROCEDURES 23

5. FRONT END DESIGN 25-26


5.1 CONNECTIVITY TO DATABASE 25
6. TESTING 27-28
6.1 TEST CASES FOR THE PROJECT 28
7. RESULTS 29
7.1 SNAPSHOTS 29
8. CONCLUSION 34
9. REFERENCES 35

iii
LIST OF FIGURES

Figure No. TITLE Page No.


4.1 ER diagram 10
4.2 SCHEMA 10
7.1 Snapshot of home page 29
7.2 Snapshot of search page 29
7.3 Snapshot of admin page 30
7.4 Snapshot of insert 30
7.5 Snapshot of delete 31
7.6 Snapshot of view 32

7.7 Snapshot of trigger 32

7.8 Snapshot of stored procedure 33

LIST OF TABLES

Table No. Title Page No.

6.1 Test cases for project 28

iv
CAR SHOWROOM MANAGEMENT

CHAPTER 1
INTRODUCTION

1.1 INTRODUCTION TO SQL

The Structured Query Language (SQL) is the language of databases. All modern relational
databases, including Access, FileMaker Pro, Microsoft SQL Server and Oracle use SQL as
their basic building block. In fact, it’s often the only way that you can interact with the database
itself. All of the graphical user interfaces that provide data entry and manipulation
functionality are nothing more than SQL translators. They take the actions you perform
graphically and convert them to SQL commands understood by the database.

SQL IS LIKE ENGLISH

At this point, you might be thinking that you’re not a programmer and learning a programming
language is certainly not up your alley. Fortunately, at its core, SQL is a simple language. It
has a limited number of commands, and those commands are very readable and are almost
structured like English sentences

INTRODUCING DATABASES

To understand SQL, it’s important to have a basic understanding of how databases work. If
you’re comfortable with terms like table, relation and query, feel free to flow right ahead! If
not, you may wish to read the article Database Fundamentals before moving on. Let’s look at
an example. Suppose you have a simple database designed to keep the inventory for a
convenience store. One of the tables in your database might contain the prices of the items on
your shelves indexed by unique stock numbers that identify each item. You’d probably give
that table a simple name like “Prices.” Perhaps you want to remove items from your store that
are priced over $25, you would "query" the database for a list of all these items. This is where
SQL comes in.

YOUR FIRST SQL QUERY

Before we get into the SQL statement required to retrieve this information, let’s try phrasing
our question in plain English. We want to “select all stock numbers from the prices table where
the price is over $25.” That’s a simple request when expressed in plain English, and it’s almost

Dept. of CSE, GAT 2021-2022 Page 1


CAR SHOWROOM MANAGEMENT

as simple in SQL. Here’s the corresponding SQL statement: SELECT StockNumber FROM
Prices WHERE Price > 5 It’s as simple as that! If you read the statement above out loud, you’ll
find that it’s extremely like the English question we posed in the last paragraph.

INTERPRETING SQL STATEMENTS

Now let’s try another example. This time, however, we’ll do it backwards. First, I’ll provide
you with the SQL statement and let’s see if you can explain it in plain English: SELECT Price
FROM Prices WHERE StockNumber = 3006 So, what do you think this statement does?
That’s right, it retrieves the price from the database for item 3006. There’s one simple lesson
you should take away from our discussion at this point: SQL is like English. Don’t worry about
how you construct SQL statements; we’ll get to that in the rest of our series. Just realize that
SQL isn’t as intimidating as it may first appear.

THE RANGE OF SQL STATEMENTS SQL

provides a wide range of statements, of which SELECT is just one. Here are some examples
of other common SQL statements: SQL INSERT and SQL DELETE: Inserts or deletes a
record from a table SQL UPDATE: Modifies records in a table

SQL CREATE and SQL DROP: Creates or deletes a table

In addition to these SQL statements, you can use SQL clauses, among them the WHERE clause
used in the previous examples. These clauses serve to refine the type of data to act on. In
addition to the WHERE clause, here are other commonly-used clauses:

AND or OR.

Combine multiple conditions to refine a SQL statement

LIKE: Compares a value to similar values using a wildcard

ORDER BY: Sorts data in ascending or descending order

If you are interested in further exploring SQL, SQL Fundamentals is a multi-part tutorial that
explores the components and aspects of SQL in more detail.

Dept. of CSE, GAT 2021-2022 Page 2


CAR SHOWROOM MANAGEMENT

1.2 INTRODUCTION TO FRONT END SOFTWARE PHP


BACKGROUND

PHP is server-side scripting system – PHP stands for "PHP: Hypertext Pre-processor"

– Syntax based on Perl, Java, and C

– Very good for creating dynamic content

– Powerful, but somewhat risky!

– If you want to focus on one system for dynamic content, this is a good one to choose.

HISTORY

• Started as a Perl hack in 1994 by Rasmus Lerdorf (to handle his resume), developed to
PHP/FI 2.0

• By 1997 up to PHP 3.0 with a new parser engine by Zeev Suraski and Andi Gutmans. Version
5.2.4 is current version, rewritten by Zend ( www.zend.com ) to include a number of features,
such as an object model.

• Current is version 5

• PHP is one of the premier examples of what an open-source project can be PHP Scripts

• Typically file ends in. php--this is set by the web server configuration

• Separated in files with the tag

• PHP commands can make up an entire file, or can be contained in html--this is a choice....

• Program lines end in ";" or you get an error

• Server recognizes embedded script and executes

Dept. of CSE, GAT 2021-2022 Page 3


CAR SHOWROOM MANAGEMENT

1.3 PROJECT REPORT OUTLINE

The report is arranged in the following way:

Chapter 1: Introduction to SQL about its database, sql query, interpreting sql statements, AND
or OR and range if sql statements

Chapter 2: requirement specification of hardware and software

Chapter 3: Objective of the Project, design of project and developing

Chapter 4: Implementation of ER diagram and it’s description

Chapter 5: Front End Design, connecting to database using PHP, Front end code of the Project

Chapter 6: Testing of project by different cases, it’s process and testing objectives

Chapter 7: Outcome of the Project

Dept. of CSE, GAT 2021-2022 Page 4


CAR SHOWROOM MANAGEMENT

CHAPTER 2

REQUIREMENT SPECIFICATION

2.1 SOFTWARE REQUIREMENTS

1. OS : Windows XP

2.PHP Triad (PHP, MySQL, Apache, and PHPMyAdmin)

2.2 HARDWARE REQUIREMENTS

This software requires following minimum hardware configuration:

➢ Processor: Pentium-iv and above

➢ RAM: 256 MB

➢ Hard Disk: 4.3GB

➢ Floppy Disk: 1.44 MB

➢ CD Drive

➢ Monitor-15” Color Monitor

Dept. of CSE, GAT 2021-2022 Page 5


CAR SHOWROOM MANAGEMENT

CHAPTER 3

OBJECTIVE OF THE PROJECT


This is software which can be used by a car showroom center for keeping the records of cars.
It helps to show the cars information over the web. In proposed system we do not have to
maintain everything manually. Through this system if any enquiry occurs it is corresponding
entries is done automatically because database management system gives facility of having
relationship between the tables. In proposed system we do not have to maintain record
manually.

Advantages of proposed System

• Easy to generate report for any transaction.


• It is very much faster than manual system.
• Easy and fastest record finding technique.
• It is very much flexible to work.
• Man power required is very less.
• Data can be stored for a longer period.

In this project, we use PHP and MySQL database. It has two modules
1. User
2. Admin

User: user can view the website and checkout the information about cars and they can also
enquiry about the car.

ADMIN MODULE

• Admin is the super user of the website who can manage everything on the website. Admin can
log in through the login page
• Dashboard: In this section, admin can see all detail in brief like the total car company, Total
Enquiry, and Total Car Listed
• Company Info: In this section, admin can mange car company information (add/update).

Dept. of CSE, GAT 2021-2022 Page 6


CAR SHOWROOM MANAGEMENT

• Car info. In this section, admin can manage car information(add/update).


• Enquiry: In this section, admin can view and maintain the enquiry.
• Search Enquiry: In this section, admin can search enquiry with the help of enquiry number.
• Pages: n this section, admin can manage about us and contact us pages.

Admin can also update his profile, change the password and recover the password.

ADVANTAGES

• Easy to generate report for any transaction.


• It is very much faster than manual system.
• Easy and fastest record finding technique.
• It is very much flexible to work.
• Manpower required is very less.
• Data can be stored for a longer record.

Dept. of CSE, GAT 2021-2022 Page 7


CAR SHOWROOM MANAGEMENT

CHAPTER 4

IMPLEMENTATION

4.1 ER DIAGRAM

The Entity-Relationship (ER) model was originally proposed by Peter in 1976 [Chen76] as a
way to unify the network and relational database views. Simply stated the ER model is a
conceptual data model that views the real world as entities and relationships. A basic
component of the model is the Entity-Relationship diagram which is used to visually represent
data objects. Since Chen wrote his paper the model has been extended and today it is
commonly used for database design for the database designer, the utility of the ER model is:

• It maps well to the relational model. The constructs used in the ER model can easily be
transformed into relational tables.

• It is simple and easy to understand with a minimum of training. Therefore, the model can be
used by the database designer to communicate the design to the end user .

• In addition, the model can be used as a design plan by the database developer to implement
a data model in specific database management software.

ER Notation

E-R (Entity-Relationship) Diagram is used to represents the relationship between entities in


the table.
The symbols used in E-R diagrams are:

SYMBOL PURPOSE

Represents attributes

Dept. of CSE, GAT 2021-2022 Page 8


CAR SHOWROOM MANAGEMENT

Represents Entity sets

Represent Relationship Sets.

Line represents flow

Dept. of CSE, GAT 2021-2022 Page 9


CAR SHOWROOM MANAGEMENT

4.2 ER DIAGRAM

Figure 4.1:ER Diagram

4.3 MAPPING OF ER DIAGRAM TO SCHEMA DIAGRAM

Step 1:Mapping of regular entity types

For each 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.

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 of W as attributes of R. In addition, include as foreign key
attributes of R, the primary key attributes of the relations that correspond to the owner entity
types.

Step 3: Mapping of Binary 1:1 Relationship Types.

Dept. of CSE, GAT 2021-2022 Page 10


CAR SHOWROOM MANAGEMENT

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. (a) The foreign key approach

(b) The merged relationship approach, and

(c)The cross reference or relationship relation approach.

Step 4: Mapping of Binary 1: N Relationship Types.

There are two possible approaches:

(1) Foreign key approach and

(2) Cross-reference or relationship relation approach.

Step 5: Mapping of Binary M:N Relationship Types.

The only option for M:N relationships is the relationship relation (cross-reference) option. 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 theparticipating entity types.
Their combination will form the primary key of 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.

Step 7: Mapping of N-ary Relationship Types.

Use the relationship relation option. For each n-ary relationship type R, where n > 2, create a
new relationship 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-ary relationship type as attributes of S.

Dept. of CSE, GAT 2021-2022 Page 11


CAR SHOWROOM MANAGEMENT

4.4 SCHEMA DIAGRAM

Figure 4.2: Schema diagram

NORMALIZATION FORMS:
1. First Normal Form First Normal Form is defined in the definition of relations (tables) itself.
This rule defines that all the attributes in a relation must have atomic domains. The values in
a atomic domain are indivisible units.

2. Second Normal Form Before learning about the Second Normal Form, need to understand

the following

● Prime attribute - An attribute, which is a part of the candidate-key, is known as a prime


attribute.

● Non-prime attribute - An attribute, which is not a part of the prime-key, is said to be a non-
prime attribute.

Dept. of CSE, GAT 2021-2022 Page 12


CAR SHOWROOM MANAGEMENT

If we follow second normal form, then every non-prime attribute should be fully functionally
dependent on prime key attribute. That is, if X -> A holds, then there should not be any proper
subset Y of X, for which Y->A also holds true, partial dependency is not allowed in Second
Normal Form.

3. Third Normal Form : For a relation to be in Third Normal Form, it must be in Second

Normal Form and the following must satisfy

● No non-prime attribute is transitively dependent on prime key attribute.

● For any non-trivial functional dependency, X->A, then either :-

➢ X is a super key or,


➢ A is prime attribute, so there not exist a transitive dependency.

4.5 CREATION OF TABLES

Table structure for table `tbladmin

CREATE TABLE `tbladmin` ( `ID` int(10) NOT NULL, `AdminName` varchar(45)


DEFAULT NULL, `UserName` varchar(50) DEFAULT NULL, `MobileNumber` bigint(10)
DEFAULT NULL, `Email` varchar(120) DEFAULT NULL, `Password` varchar(120)
DEFAULT NULL, `AdminRegdate` timestamp NULL DEFAULT current_timestamp())
ENGINE=InnoDB DEFAULT CHARSET=latin1;

Table structure for table `tblcars`

CREATE TABLE `tblcars` (`ID` int(10) NOT NULL, `CarName` varchar(50) DEFAULT
NULL,`CarImage` varchar(120) DEFAULT NULL, `CarImage1` varchar(255) DEFAULT
NULL, `CarImage2` varchar(255) DEFAULT NULL,`CarImage3` varchar(255) DEFAULT
NULL, `CarImage4` varchar(255) DEFAULT NULL,`CarType` varchar(120) DEFAULT
NULL, `CarCompany` varchar(120) DEFAULT NULL, `CarBodycolor` varchar(50) NOT
NULL,`CarBodytype` varchar(50) NOT NULL, `CarModel` varchar(50) NOT NULL,
`CarPrice` varchar(120) DEFAULT NULL, `CarNumber` varchar(120) DEFAULT
NULL,`CarLength` varchar(120) DEFAULT NULL, `CarWidth` varchar(120) DEFAULT
NULL, `CarHeight` varchar(120) DEFAULT NULL, `Seatingcapacity` varchar(120)

Dept. of CSE, GAT 2021-2022 Page 13


CAR SHOWROOM MANAGEMENT

DEFAULT NULL, `FuelType` varchar(120) DEFAULT NULL, `Displacement`


varchar(120) DEFAULT NULL, `MaxPower` varchar(120) DEFAULT NULL, `MaxTorque`
varchar(120) DEFAULT NULL, `Milage` varchar(120) DEFAULT
NULL,`TransmissionType` varchar(120) DEFAULT NULL,`NoofGear` varchar(120)
DEFAULT NULL, `AirCondition` varchar(120) DEFAULT NULL, `CarPowerwindow`
varchar(120) DEFAULT NULL, `CarCenterlocking` varchar(120) DEFAULT NULL,
`CarABS` varchar(120) DEFAULT NULL, `AirBags` varchar(120) DEFAULT NULL,
`FrontType` varchar(120) DEFAULT NULL, `RearType` varchar(120) DEFAULT NULL,
`CarDescription` varchar(300) DEFAULT NULL, `FuelCapacity` varchar(120) DEFAULT
NULL, `BootSpace` varchar(120) DEFAULT NULL,`FogLamps` varchar(120) DEFAULT
NULL, `EngineDisplay` varchar(120) DEFAULT NULL, `CentralLocking` varchar(120)
DEFAULT NULL, `LastUpdationdate` timestamp NULL DEFAULT current_timestamp())
ENGINE=InnoDB DEFAULT CHARSET=latin1;

Table structure for table `tblcompany`

CREATE TABLE `tblcompany` ( `ID` int(10) NOT NULL,`CompanyName` varchar(120)


DEFAULT NULL, `CompanyImage` varchar(200) NOT NULL, `CompanyRegdate`
timestamp NULL DEFAULT current_timestamp()) ENGINE=InnoDB DEFAULT
CHARSET=latin1;

Table structure for table `tblenquiry`

CREATE TABLE `tblenquiry` ( `ID` int(10) NOT NULL, `EnquiryNumber` varchar(10)


NOT NULL,`CardId` mediumint(50) DEFAULT NULL,`FullName` varchar(120)
DEFAULT NULL, `Email` varchar(250) DEFAULT NULL,`MobileNumber` bigint(10)
DEFAULT NULL, `Message` varchar(250) DEFAULT NULL,`EnquiryDate` timestamp
NULL DEFAULT current_timestamp(), `Status` varchar(10) NOT NULL, `AdminRemark`
varchar(200) NOT NULL,`AdminRemarkdate` timestamp NOT NULL DEFAULT '0000-00-
00 00:00:00' ON UPDATE current_timestamp() ENGINE=InnoDB DEFAULT
CHARSET=latin1;

Table structure for table `tblpages`

Dept. of CSE, GAT 2021-2022 Page 14


CAR SHOWROOM MANAGEMENT

CREATE TABLE `tblpages` (`ID` int(10) NOT NULL,`PageType` varchar(120) DEFAULT


NULL, `PageTitle` mediumtext DEFAULT NULL,`HeadOffice` varchar(200) NOT
NULL,`Email` varchar(200) NOT NULL,`PhoneNumber` bigint(10) NOT
NULL,`PageDescription` mediumtext DEFAULT NULL, `UpdationDate` timestamp NULL
DEFAULT NULL ON UPDATE current_timestamp()) ENGINE=InnoDB DEFAULT
CHARSET=latin1;

4.6 INSERTION OF TUPLES


Dumping data for table `tbladmin`

INSERT INTO `tbladmin` (`ID`, `AdminName`, `UserName`, `MobileNumber`, `Email`,


`Password`, `AdminRegdate`) VALUES(1, 'tester', 'admin', 987654321, '[email protected]',
'f925916e2754e5e03f75dd58a5733251', '2019-06-24 06:21:53');

Figure 4.3

Dumping data for table `tblcars`

INSERT INTO `tblcars` (`ID`, `CarName`, `CarImage`, `CarImage1`, `CarImage2`,


`CarImage3`, `CarImage4`, `CarType`, `CarCompany`, `CarBodycolor`, `CarBodytype`,
`CarModel`, `CarPrice`, `CarNumber`, `CarLength`, `CarWidth`, `CarHeight`,
`Seatingcapacity`, `FuelType`, `Displacement`, `MaxPower`, `MaxTorque`, `Milage`,
`TransmissionType`, `NoofGear`, `AirCondition`, `CarPowerwindow`, `CarCenterlocking`,
`CarABS`, `AirBags`, `FrontType`, `RearType`, `CarDescription`, `FuelCapacity`,
`BootSpace`, `FogLamps`, `EngineDisplay`, `CentralLocking`, `LastUpdationdate`)
VALUES(1, 'Maruti Suzuki Swift','915fa31995d88d74dabd8666dc52a4a3.jpg', NULL,
NULL, NULL, NULL, 'Sedan', 'Maruti Suzuki', 'Cherry', 'Plastic', 'Triber', '₹ 5.43 - 10.12
Lakh', '78945', '3995 mm', '1735 mm', '1515', '5', 'Diesel', '1197 cc', '71bhp@6250rpm',
'96Nm@3500rpm', '28.4 kmpl', 'Automatic transmission', '5', 'Yes', 'Front and Rear', 'Yes',
'Yes', 'Driver and Passenger', '2', '898', 'Maruti Swift Dzire VXi petrol variant is priced at Rs
6.27 lakh (ex-showroom, Delhi). On the outside, this VXi variant comes with body coloured
bumpers, door handles and outside rear view mirrors (ORVMs) with integrated turn indicators.

Dept. of CSE, GAT 2021-2022 Page 15


CAR SHOWROOM MANAGEMENT

The model misses out on alloy wheels but has got full wheel cov', '37 ltr', '378 mm', 'Na', '1197
cc', 'Yes', '2019-06-26 11:43:41'),(2, 'Renault Triber',
'a5b118bd8e7c40ffe7ae22e74cbe29c6.jpg', NULL, NULL, NULL, NULL, 'Hatchbag',
'Renault', 'White', 'Plastic', 'ABC', '5.70 - 9.55 lakh', '78945', '3990 mm', '1739 mm', '1643 mm',
'7', 'Diesel', '999 cc', '72Ps @ 6250 RPM', '96Nm @ 3500 RPM', '28.4 kmpl', 'Automatic
transmission', '5', 'Yes', 'Front and Rear', 'Yes', 'Yes', 'Driver and Passenger', 'Mcpherson Strut',
'Torsion Beam', 'The Renault Triber is a budget MPV from French company Renault. It is a 7-
seater vehicle based on the Renault Kwid. The big USP of the Renault Triber is that it will get
detachable third-row seats which can be taken out to optimise the cargo space. It will have
manual folding and unlatching operatio', '40 ltr', '378 mm', 'Front', '1197 cc', 'Yes', '2019-06-
27 04:25:51'),(3, 'Nissan Kicks', 'd41d8cd98f00b204e9800998ecf8427e.png', NULL, NULL,
NULL, NULL, 'SUV', 'Nissan', 'Blue', 'Plastic', 'Kicks', '10.91 - 17.38 Lak', '78946', '4384 mm',
'1813 mm', '1656 mm', '5', 'Diesel', '1498 CC', '104 bhp@5600 rpm', '142 Nm@4000 rpm',
'14.2 Kmpl', 'Automatic transmission', '5', 'Yes', 'Front and Rear', 'Yes', 'Yes', 'Driver and
Passenger', '2', '898', 'Nissan is the newest entrant and though its yet to launch Kicks in India,
we got a chance to bring the segment benchmark - the Hyundai Creta', '50 ltr', '378 mm', 'Front',
'1197 cc', 'Yes', '2019-07-01 10:59:43'),(4, 'MARUTI-SUZUKI ALTO K10',
'cddb23f513bccb3e89a12687fd9de4b2.jpg', NULL, NULL, NULL, NULL, 'Hatchbag',
'Maruti Suzuki', 'Orange', 'Plastic', 'ALTO K10', '4.51-6.21 lakh', '774654', '3620 mm', '1495
mm', '1460 mm', '5', 'Petrol', '998 cc', '67 bhp', '91@3500 rpm', '20.2 km/ltr', 'Automatic
transmission', '5', 'Yes', 'Front and Rear', 'Yes', 'Yes', 'Driver and Passenger', 'McPherson Strut',
'3-Link Rigid Axle', 'Alto K10 is the elder sibling of the Alto 800 from the Maruti-Suzuki’s
range. It is the highest selling vehicle in India and it is prefered by most brand for the mid class
customers. It is available in Tango Orange, Granite Grey, Fire Brick Red, Silky Silver and
Superior White colours.\r\nService c', '35 ltr', '268 mm', 'Front', '64646 cc', 'Yes', '2019-07-04
12:05:08'),(5, 'Ford Figo Ambiente 2.1', '985dbf74fe122ce6688bb403e28e0544.jpg', NULL,
NULL, NULL, NULL, 'Hatchbag', 'Ford', 'Silver', 'Plastic', 'Ambiente 2.1', '5.23-10.83 lakh',
'5689', '3886 mm', '1695 mm', '1525 mm', '5', 'Petrol', '1196 cc', '88 bhp', '112@4000 rpm',
'18.16 km/ltr', 'Manual transmission', '5', 'Yes', 'Front and Rear', 'Yes', 'Yes', 'Driver and
Passenger', 'McPherson Strut', 'Twist Beam', 'The new Figo hatchback is the next generation
model from Ford in the B-Segment. The hatchback has been designed keeping in mind the
One Ford philosophy followed by Ford’s global line-up.', '42 ltr', '286 mm', 'Rear', '1197
cc', 'Yes', '2019-07-04 12:17:41'),(6, 'HYUNDAI EON Sportz Petrol',

Dept. of CSE, GAT 2021-2022 Page 16


CAR SHOWROOM MANAGEMENT

'2066225b0edcac9c46cfe98dab4a8cfb.jpg', NULL, NULL, NULL, NULL, 'Hatchbag',


'Hyundai', 'Red', 'Plastic', 'Sportz Petrol', '4.82-11.28 lakh', '78456', '3495 mm', '1550 mm',
'1500 mm', '5', 'Petrol', '1197 cc', '55 bhp', '76@4000 rpm', '21 km/ltr', 'Manual transmission',
'5', 'Yes', 'Front and Rear', 'Yes', 'Yes', 'Driver and Passenger', 'McPherson Strut', 'Torsion
Beam Axle', 'The Hyundai Eon, is a city car produced by Hyundai. It was launched in 2011 in
India, the Eon is produced for the domestic and export markets as the companys entry level
city car.', '32 ltr', '378 mm', 'Front', '1197 cc', 'Yes', '2019-07-04 12:26:49'),

(7, 'Hyundai Creta', '5e29671750025bdb838e7931f5f15783.jpg', NULL, NULL, NULL,


NULL, 'SUV', 'Hyundai', 'Orange', 'Plastic', 'Creta', '9.60 - 15.65 lakh', '235689', '4270 mm',
'1780 mm', '1665 mm', '5', 'Diesel', '1582 cc', '126.2bhp@4000rpm', '259.87NM@1500-
3000rpm', '20.5 kmpl', 'Manual transmission', '5', 'Yes', 'Front and Rear', 'No', 'Yes', 'Driver,
Passenger and Side Front', 'McPherson Strut', 'Twist Beam', 'Hyundai has been constantly and
silently been updating the Creta. About six months after the launch of the Creta facelift,
Hyundai added the SX(O) Executive variant to the Creta lineup. The variant is available with
both 1.6-litre petrol and diesel engines and both can be paired with a 6-speed manua', '50 ltr',
'400-litres', 'Front', '1582 cc', 'No', '2019-07-04 12:43:13'),

(8, 'BMW X1', 'd41d8cd98f00b204e9800998ecf8427e.jpg',


'ce04f21ba9b0624d83b0fe8f0f0a14e5.jpg', '455bca91a148120a9d2eb99961cb69bd.jpg',
'db990fb13e06d6de60cfc855b90a696a.jpg', '0e35987b92e2b5057af2208ed4182274.jpg',
'MUV', 'BMW', 'Whie', 'Metal', 'X1', '35.2 - 45.7 Lakh', 'FSDS24234', '4439', '2060', '505', '4',
'Diesel', '1995', '190bhp@4000rpm', '400Nm@1750-2500rpm', '10km/Ltr', 'Manual
transmission', '8', 'Yes', 'NA', 'Yes', 'Yes', 'Yes', 'NA', 'NA', 'X1 Specs, Features and
Price\r\nThe BMW X1 has 1 Diesel Engine and 1 Petrol Engine on offer. The Diesel engine
is 1995 cc while the Petrol engine is 1998 cc. It is available with the Automatic transmission.
Depending upon the variant and fuel type the X1 has a mileage of 15.71 to 20.68 kmpl. The
X1 is', '61', '300', 'Front', 'Yes', 'Yes', '2019-07-15 17:06:59'),

(16, 'MG Hector', '14c14bc3542555241398984169993947.jpg',


'156005c5baf40ff51a327f1c34f2975b1563600027.jpg',
'799bad5a3b514f096e69bbc4a7896cd91563600027.jpg',
'd0096ec6c83575373e3a21d129ff8fef1563600027.jpg',
'032b2cc936860b03048302d991c3498f1563600027.jpg', 'SUV', 'Tata', 'Red', 'metal',
'Automatic', '12lac - 16 Lac', 'HJGG25235', '1345', '233', '234', '7', 'Diesel', 'NA', '12000HCC',

Dept. of CSE, GAT 2021-2022 Page 17


CAR SHOWROOM MANAGEMENT

'24234', '12 Km/Ltr', 'Automatic transmission', '5', 'Yes', 'Yes', 'Yes', 'Yes', 'YEs', 'ghfhgf',
'fdsfds', 'This is sample text for testing', '45 ltr', 'Yes', 'Yes', 'YEs', 'Yes', '2019-07-20
05:20:27');

Figure 4.4

Dumping data for table `tblenquiry`

INSERT INTO `tblenquiry` (`ID`, `EnquiryNumber`, `CardId`, `FullName`, `Email`,


`MobileNumber`, `Message`, `EnquiryDate`, `Status`, `AdminRemark`, `AdminRemarkdate`)
VALUES (3, '806164918', 2, 'Mahesh', '[email protected]', 9898989898, 'This is sample text
for testing', '2019-07-02 18:02:03', 'Answer', 'OK', '2019-07-03 04:21:02'),(4, '850303251', 1,
'Suman Rajput', '[email protected]', 4578961236, 'Hello can you provide me test drive',
'2019-07-03 03:36:32', '', '', '0000-00-00 00:00:00'),(5, '832672174', 1, 'test', '[email protected]',
2143432, 'rwerwe', '2019-07-20 05:16:03', '', '', '0000-00-00 00:00:00'),(6, '404110191', 1,
'Anuj kumar', '[email protected]', 9354778033, 'I want to purchase this car',
'2019-07-20 05:16:42', 'Answer', 'This is sample text for testing.', '2019-07-20 05:17:18');

Figure 4.5

Dumping data for table `tblcompany`

INSERT INTO `tblcompany` (`ID`, `CompanyName`, `CompanyImage`, `CompanyRegdate`)


VALUES

Dept. of CSE, GAT 2021-2022 Page 18


CAR SHOWROOM MANAGEMENT

(1, 'Nissan', 'b2a4e42ded25ef0cad02c7a8fe301541.jpg', '2019-06-26 11:01:58'),

(4, 'Audi', '165fa0886c15eb9ffee37819744af8b2.jpg', '2019-06-27 05:13:58'),

(5, 'Bajaj', 'fa6e631f905ad200b857cfb360bfee7b.png', '2019-06-27 05:14:12'),

(7, 'BMW', '0096fd0901bd53ae8874845888b12fa6.jpg', '2019-06-27 05:14:32'),

(9, 'Chevrolet', '2c9b6036d5cf5b7644d0df0fa52f6d1a.jpg', '2019-06-27 05:15:26'),

(10, 'Datsun', 'a66b52d27bdf5885e29f40a5203408b3.jpg', '2019-06-27 05:15:36'),

(12, 'Ferrari', 'd287be81932f2170ccd0fc00af3b77a9.png', '2019-06-27 05:15:54'),

(13, 'Fiat', '4b350a990a2d76f9982987f2e9860d39.jpg', '2019-06-27 05:16:05'),

(15, 'Ford', '1c56cb9527018d07f5846fc1b8dfa19e.jpg', '2019-06-27 05:16:25'),

(16, 'Honda', '7469caa8711f9cda518cbf8b532075c9.png', '2019-06-27 05:16:33'),

(17, 'Hyundai', '09c1ccd09bdc92ba0c07d5792252d0da.png', '2019-06-27 05:16:43'),

(19, 'Jaguar', '4b88c17cb0b9284013d7c7cc38a01c02.jpg', '2019-06-27 05:16:58'),

(24, 'Lexus', '610218a9544639fcbed9866a303fd01d.png', '2019-06-27 05:17:41'),

(25, 'Mahindra', 'a7afd646e3e169976110a92ba231784c.png', '2019-06-27 05:17:48'),

(26, 'Maruti Suzuki', 'e73abd734b96481f98c28fe0d56fa1cc.png', '2019-06-27 05:17:55'),

(28, 'Mercedes-Benz', '0a11b55c90f3f3d0226896e19cc019de.png', '2019-06-27 05:18:13'),

(30, 'MG Motor', '769eaa4877849154165c53f123b9a341.jpg', '2019-06-27 05:19:09'),

(32, 'Mitsubishi', '83c81af559880aa221bbe12f7e3952e1.png', '2019-06-27 05:19:25'),

(36, 'Renault', '53ae0f8889e1e66ac226d631e9826efc.jpg', '2019-06-27 05:19:57'),

(38, 'Skoda', 'edf43a4f08b9c8853c2f39336ee1e00b.png', '2019-06-27 05:20:18'),

(39, 'Tata', '54efb08fede8f0ab5257eeb02f952710.png', '2019-06-27 05:20:26'),

(40, 'Tesla', 'f915b8b50e6ea10b9069180ef592c0f9.jpg', '2019-06-27 05:20:33'),

(41, 'Toyota', '4b8b7b08c7899ca522d1f7a95860c6e8.jpg', '2019-06-27 05:20:40'),

Dept. of CSE, GAT 2021-2022 Page 19


CAR SHOWROOM MANAGEMENT

(42, 'Volkswagen', '1ad26f835a2194b4f97c4db6d2d7a69a.jpg', '2019-06-27 05:20:47'),

(43, 'Volvo', 'd99e00f52a1198f15b4ec3bcb7b2cf14.jpg', '2019-06-27 05:20:55'),

(44, 'Test', '799bad5a3b514f096e69bbc4a7896cd9.jpg', '2019-07-20 05:17:40');

Figure 4.6

Dumping data for table `tblpages`

INSERT INTO `tblpages` (`ID`, `PageType`, `PageTitle`, `HeadOffice`, `Email`,


`PhoneNumber`, `PageDescription`, `UpdationDate`) VALUES

(1, 'aboutus', 'About Us', '', '', 0, 'Welcome to Car Showroom Management System . Indias
largest car seller. Car Showroom Management System has always striven to serve car buyers
in the most comprehensive and convenient way
possible.<div><br></div><div><div><ol><li><span style=\"color: rgb(0, 0, 0); font-family:

Dept. of CSE, GAT 2021-2022 Page 20


CAR SHOWROOM MANAGEMENT

uni_neuebook; font-size: 18px; text-align: center;\">Our strong focus on manufacturing


excellence ensures that our facilities carry out every step in the manufacturing process backed
by leading-edge R&amp;D and meeting the highest standards of
quality.</span><br></li><li><span style=\"color: rgb(0, 0, 0); font-family: uni_neuebook;
font-size: 18px; text-align: center;\">Our R&amp;D centres focus on the look and feel of our
vehicles, while investing in safety, efficiency and fuel economy.<br></span></li><li><span
style=\"color: rgb(0, 0, 0); font-family: uni_neuebook; font-size: 18px; text-align:
center;\">Our manufacturing facilities are certified for world-class manufacturing and quality
standards. We have state-of-the-art technology backed by passionate engineering, quality
talent and focus on automation and technology.<br></span></li></ol></div></div>', '2019-
07-20 05:22:06'),

(2, 'contactus', 'Contact Us', 'CSMS:5th Floor, ASV Ramana Towers, 52, Venkatnarayana
Road,T.Nagar Chennai-600 017', '[email protected]', 1234567890, 'Plot No. 30,
Shivaji Marg, Najafgarh Road, Opposite CTC Mall, Moti Nagar, New Delhi, Delhi,
110015<div><br></div>', '2019-07-20 05:22:34');

Figure 4.7

4.7 CREATION OF TRIGGERS

Trigger: A trigger is a stored procedure in database which automatically invokes whenever a


special event in the database occurs. For example, a trigger can be invoked when a row is
inserted into a specified table or when certain table columns are being updated.

Syntax:

create trigger [trigger_name]

[before | after]

{insert | update | delete}

on [table_name]

Dept. of CSE, GAT 2021-2022 Page 21


CAR SHOWROOM MANAGEMENT

[for each row]

[trigger_body]

Figure 4.8

4.8 CREATION OF STORED PROCEDURES

Stored Procedures are created to perform one or more DML operations on Database. It is
nothing but the group of SQL statements that accepts some input in the form of parameters
and performs some tasks and may or may not returns a value.

Syntax: Creating a Procedure.

CREATE or REPLACE PROCEDURE name(parameters)

IS

variables;

BEGIN

//statements;

END;

The most important part is parameters. Parameters are used to pass values to the Procedure.

There are 3 different types of parameters, they are as follows:

1. IN:

Dept. of CSE, GAT 2021-2022 Page 22


CAR SHOWROOM MANAGEMENT

This is the Default Parameter for the procedure. It always receives the values from calling
program.

2. OUT:

This parameter always sends the values to the calling program.

3. IN OUT:

This parameter performs both the operations. It Receives value from as well as sends the values
to the calling program.

Figure 4.9

Dept. of CSE, GAT 2021-2022 Page 23


CAR SHOWROOM MANAGEMENT

CHAPTER 5

FRONT END DESIGN

5.1 CONNECTIVITY TO DATABASE

Rationale

● Most Web Applications: - Retrieve information from a database to alter their on-screen
display Store user data such as orders, tracking, credit card, etc. in a database.

● Permits them to adapt individual users, and provide fresh changing content. PHP: Built-in
Database Access

● PHP provides built in database connectivity for a wide range of databases - MySQL,
PostgreSQL, Oracle, Berkeley DB, Informix, MySQL, Lotus Notes, and more - Starting
support for a specific database may involve PHP configuration steps.

● Another advantage of using a programming language that has been designed for the creation
of web apps.

● Support for each database is described in the PHP manual at: -


http://www.php.net/manual/en/

High-Level Process of Using MySQL from PHP

● Create a database connection.

● Select database you wish to use.

● Perform a SQL query.

● Do something processing on query results.

● Close database connection.

CREATING DATABASE CONNECTION

● Use either mysql_connect or mysql_pconnect to create database connection

★ mysql_connect: connection is closed at the end of script (end of page).

Dept. of CSE, GAT 2021-2022 Page 24


CAR SHOWROOM MANAGEMENT

★ mysql_pconnect: creates persistent connection

● connection remains even after the end of the page

● parameters

★ Server - hostname of the server.

★ Username - username on the database.

★ Password - password on the database - New link (mysql_connect only).

★ reuse database connection created by previous call to mysql_connect - Client Flags.

● MYSQL_CLIENT_SSL: Use SSL

● MYSQL_CLIENT_COMPRESS: Compress data sent to MySQL.

SECURITY NOTE

● Username and password fields imply that database password is sitting there in the source
code.

★ If someone gains access to source code, can compromise the database.

★ Servers are sometimes configured to view PHP source code when a resource is requested
ith “.phps” instead of “.php”.

★ One approach to avoid this: put this information in web server configuration file.

● Then ensure the web server configuration file is not externally accessible.

SELECTING A DATABASE

● mysql_select_db() - Pass it the database name.

● Related :- mysql_list_dbs()

● List databases available - Mysql_list_tables()

● List database tables available

Dept. of CSE, GAT 2021-2022 Page 25


CAR SHOWROOM MANAGEMENT

CHAPTER 6

TESTING
This chapter gives the outline of all testing methods that are carried out to get a bug free
system. Quality can be achieved by testing the product using different techniques at different
phases of the project development. The purpose of testing is to discover errors. Testing is the
process of trying to discover every conceivable fault or weakness in a work product. It provides
a way to check the functionality of components sub assemblies and/or a finished product. It is
the process of exercising software with the intent of ensuring that the Software system meets
its requirements and user expectations and does not fail in an unacceptable manner. There are
various types of test. Each test type addresses a specific testing requirement.

6.1 TESTING PROCESS

Testing is an integral part of software development. Testing process certifies whether the
product that is developed compiles with the standards that it was designed to. Testing process
involves building of test cases against which the product has to be tested.

TESTING OBJECTIVES

The main objectives of testing process are as follows.

● Testing is a process of executing a program with the intent of finding an error.

● A good test case is one that has high probability of finding undiscovered error.

● A successful test is one that uncovers the undiscovered error.

TEST CASES

The test cases provided here test the most important features of the project. Test cases of the
project

Dept. of CSE, GAT 2021-2022 Page 26


CAR SHOWROOM MANAGEMENT

CAR SHOWROOM DATABASE

Table 6.1 ----Test cases

Sl No Test Input Expected Observed Remarks


Results Results

Insert a Record New tuple Query OK 1


should be
1 row affected PASS
inserted
or inserted

Search a Record Search from Query OK 1

2 existing row affected PASS

Records or searched

Delete a record Delete a Query OK 1

3 Record row affected PASS

or deleted

Trigger Query OK

4 Create Trigger Created Trigger PASS

created

Create Stored Stored Query OK

5 Procedure Procedure Stored procedure PASS

Created created

Dept. of CSE, GAT 2021-2022 Page 27


CAR SHOWROOM MANAGEMENT

CHAPTER 7

RESULTS
This section describes the screens of the “Project title”. The snapshots are shown below for
each module.

7.1 SNAPSHOTS

Figure 7.1: Home Page

This is the first page that will be displayed.

Figure7.2:Search

This is webpage is used to search the cars of our choice

Dept. of CSE, GAT 2021-2022 Page 28


CAR SHOWROOM MANAGEMENT

Figure7.3: Admin page

The admin has the access to all the records related to list of cars, enquiry etc.

Snapshot 7.4.1: Insert

Webpage for inserting new cars

Dept. of CSE, GAT 2021-2022 Page 29


CAR SHOWROOM MANAGEMENT

Snapshot 7.4.2: Insert

Webpage for inserting new cars

Figure 7.5:Delete

Webpage to delete the car and its details.

Dept. of CSE, GAT 2021-2022 Page 30


CAR SHOWROOM MANAGEMENT

Figure 7.6: View

Webpage to view the enquiry.

Figure 7.7:Trigger

A trigger is generated after each successful entry into the database or after each company
which has been inserted

Dept. of CSE, GAT 2021-2022 Page 31


CAR SHOWROOM MANAGEMENT

Figure 7.8:Stored Procedure

Stored procedure is the details of all the types of cars

Dept. of CSE, GAT 2021-2022 Page 32


CAR SHOWROOM MANAGEMENT

CHAPTER 8

CONCLUSION

With the theoretical inclination of our syllabus it becomes very essential to take the at most
advantage of any opportunity of gaining practical experience that comes along. The building
blocks of this Major Project “CAR SHOWROOM MANAGEMENT SYSTEM” was one
of these opportunities. It gave us the requisite practical knowledge to supplement the already
taught theoretical concepts thus making us more competent as a computer engineer. The
project from a personal point of view also helped us in understanding the following aspects of
project development.

● The planning that goes into implementing a project.

● The importance of proper planning and an organized methodology.

● The key element of team spirit and co-ordination in a successful project.

The project also provides us the opportunity of interacting with our teachers and to gain from
their best experience.

Dept. of CSE, GAT 2021-2022 Page 33


CAR SHOWROOM MANAGEMENT

CHAPTER 9

REFERENCES

[1] Fundamentals of Database System, Ramez Elmasri and Shamkant B.Navathe, 7th Edition,
2017, Pearson.
[2] Database Management System, Ramakrishna and Gehrke, 3rd Edition, 2014, McGraw Hill.

[3] The Complete Reference PHP by Steven Holzner.

[4] Website: https://stackify.com/learn-php-tutorials/

[5] http://localhost/dashboard/phpinfo.php

Dept. of CSE, GAT 2021-2022 Page 34

You might also like