Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

YD Cars

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 51

YD CAR

KARNATAK UNIVERSITY’S
CSI COMMERCE COLLEGE
DHARWAD

DEPARTMENT OF
BCA

PROJECT REPORT ON
“CAR RENTAL”

UNDER THE GUIDANCE OF

Asif sir

SUBMITTED BY

Chandrashekhar.koti Navanath.D

Page 1
YD CAR

Reg NO:17u10109 Reg No: 17U10122


BCA 6th SEM BCA 6th SEM

ACKNOWLEDGEMENT

We would like to take this opportunity to express our gratitude towards all the
people who have helped in various ways for successful completion of this
project.

We wish to express to our deep sense of gratitude to our principal of CSI


college. who inspired us to explore our skills and talent. We are deeply
grateful also t with our beloved internal guide Smt. Asif sir for their
encouragement, support, and guidance in this project and also thankful

We thank our Parents and Almighty for their blessing showered on us, at
all times all circumstances.

I would like to thank all the faculty members of BCA department for
adding value to our project. Last but not the least we would like to thank all of
my friends for their moral support.

Page 2
YD CAR

Dedicated to
My
Teachers and parents

CONTENTS
Page 3
YD CAR

1. INTRODUCTION………………………………………………………….1-
3

1.1 Problem Definition


1.2 Project Overview
1.3 Hardware Specification
1.4 Software Specification

2. LITERATURE SURVEY………………………………………...……….4-
5

2.1 Existing System

2.2 Proposed system

2.3 Feasibility Study

3. SYSTEM ANALYSIS & DESIGN………………………………........6-


22

3.1 Requirement Specification


3.2 Flowcharts/DFDs and ERDs

4. Implimentation…………………………………………......................................23-47

4.1 Languages Used

4.1.1 PHP – DETAILS

4.1.2 Usage

4.1.3 Speed optimization

4.2 Software Used (server , database Etc)

4.3 Code

5. Testing…………………………………………….…………………………………48-53

Page 4
YD CAR

5.1 Details of testing methodologies.

5.2 Sample Testing Used

6. Result / Screenshonts……………………………….………………………..…54-58

6.1 Ad-well Media Login Form

6.2 Ad-Well Media Home Page

6.3 Selection of categories and subcategories

6.4 Respected subcategory advertisement will be displayed

6.5 Customer Detail Form

6.6 Admin viewing the customer details

6.7 Distributor adding the details of Magazines

7. Conclusion…………………………………………………………………………………59

8. References ………………………60

1. INTRODUCTION:

Page 5
YD CAR

2. The project entitled “YD CARS ” is to develop software, which helps the
customers by booking the cars on-line for the traveling purpose .The aim
is to develop an interactive system that helps for the booking of their
dream cars
3. The main objective of the project is to develop the software
solution for travel booking & reservations.
4. In this Traveling booking system, if the customer wishes to
travel anywhere through this site he/she should register. This is the
primary work carried out by the customer in this traveling agency

1.1 PROBLEM DEFNITION:

• The main objective of the project is to develop a software solution

for bookin the cars as well as reservations.

• Further this project is implemented to provide bookings for any

Possible modes of traveling, depending upon the cities.

• We can book cars from anywhere at anytime which saves both the
money and time.

Page 6
YD CAR

1.2 PROJECT OVERVIEW:

 The new system is totally computerized system.

 A new system provides features like time efficiency to show car details,user

profiles and whatever the customer will give the feedback to the admin.

 This system provides tourism and travelling facilities.

 An inquiry is easily done by user in the system

 It is the most software application for managing online car rental

1.3 HARDWARE SPECIFICATION:

HARDWARE REQUIREMENT:

Processor PENTIUM IV

RAM 512MB

Page 7
YD CAR

Hard Disk 20GB of available hard disk space

Interface High Speed LAN Connection

1.4 SOFTWARE SPECIFICATION:

SOFTWARE REQUIREMENT:

Operating System Any Operating System

Front End HTML, CSS

Server Side Software WAMP Server

Middleware PHP

Back End My SQL

2. LITRETURE SURVEY:

2.1 EXISTING SYSTEM:


 An existing system can provide manually paper work.

Page 8
YD CAR

 The user has to go in the office where user can get the car on rent and

book their car

 In the existing system you can not provide feedback of the user to the

admin online

 It is difficult to find the car which they expect

2.2 PROPOSED SYSTEM:

 The new system is totally computerized system.

 A new system provides features like time efficiency to show car details,user

profiles and whatever the customer will give the feedback to the admin.

 This system provides tourism and travelling facilities.

2.3 FEASIBILITY STUDY:


Preliminary investigations examine project feasibility. The likelihood of the system is
will be useful to the organization. Three tests of feasibility-all equally important are studied.

 Operational feasibility:

Page 9
YD CAR

Operational feasibility is based on whether the user will accept the developed application and
will satisfy the needs of user.

 Technical feasibility:

Technical feasibility is based on whether the proposed system is capable of holding the data
required for the application.

 Financial Feasibility:

This concept is based on the financial status of the owner such that he must have sufficient
budget to develop the proposed system which is cost effective.

3. SYSTEM ANALYSIS AND DESIGN

3.1 REQUIREMENT SPECIFICATION

3.1.1 Introduction:

This specification is used to specify the requirements for the initial implementation of
the system and update the system in future. The software requirement bridges the gap
between client or the user and the system developer. This document describes the user need
accurately.

Purpose:

This Software Requirement Specification (SRS) specifies the requirements of CRM


(Customer Relationship Management) for ‘Ad-well media’. This CRM is designed to allow
new online portal quick and easy to setup and perform advertisement and magazines orders
business over the internet.

Page 10
YD CAR

This document will outline all of the functions, capabilities and requirements for
developing an application for managing accurate billing statements to customers, managing
the orders of magazines and handling the customer packages and payments.

Scope:

The purpose of project is to build an application program to reduce the

manual work for managing the car payment,booking,customer.it tracks all the details about

the customer,supplier.it is increase efficiency of managing car,payment and here choice also

provide to select which type of car they want. Specific touring packages also provided

The car rental system provides complete functionality of listing and booking car.in this

system,tourism and travelling facilities also provides Car

payment,customer,supplier,insurance The project is totally built at administrator is guaranted

the access.

Definitions, Acronyms and Abbreviations:

GUI: Graphical User Interface.

HTML: Hypertext Markup language is the predominant markup language for web pages.

HTTP: Hyper Text Transfer Protocol.

PHP: Pre Hypertext Processor/Personal Home Page

Page 11
YD CAR

PHP Triad: PHP Triad installs a complete working PHP/MySql server environment on
Windows /Linux platforms Installs PHP, MySql, Apache.

PHPMyAdmin DHTML: Dynamic Hypertext Markup language is the predominant markup


language for web pages.

SRS: Software Requirement Specification.

WAMP: Windows Apache MySQL PHP.

3.1.2Overall Description:

This section will give an overview of the whole system. The system will be explained
in the context to show how the system interacts with others and introduce the basic
functionality of it. At last, the constraints and assumptions for the system will be presented.

Product Perspective:

The application should provide quick access to the records maintained and must reveal
the important reviews about the advertisements and orders of magazines so that the growth
can be easily compared and should provide with the various reports showing the related
details so that the important decisions could be taken easily.

The transactions related to advertisement and orders are maintained manually at present along
with maintaining the accounts of the customers and distributor management. The billing
system of the advertisement and orders are maintained manually. All these are to be
automated and an application is required to relate all of them relatively and logically so that
the current system can be replaced and accepted without major changes and problems.

3.1.3 User interface:

The user interface allows the users to remotely access the system via several applications.
Users will be able to use the service through applications such as Mozilla Firefox, Microsoft
Internet Explorer, etc. Allow the user to access the information fast and easily from remote
locations.

 Compatibility:

Page 12
YD CAR

The software is compatible with Windows XP. It also works well with
Windows 2000 or higher. It requires Microsoft Internet Explorer 5.0(or any latest web
browser) or above with Wamp Server.

 Portability:

The software is extremely portable in the sense that it can be run on any machine
with a web-browser.

 Acceptance criteria:

The system must work well and compile with all the requirements and
constraints stated above. All conditions defined by the need user by the end user are to be
satisfied. The system should satisfy all the requirement and constraints of the Ad-well media
and must work well according to necessity.

3.1.4 User characteristics:

In common the USER should be familiar and must have the knowledge of windows operating
system. Basic computer knowledge of using keyboard, mouse and common windows
environment is required.

The primary user of the application is the admin who maintains the software or product he
should know about the data present and the data he want to view, so that he can
efficiently use the function of the proposed system. The software is GUI based to reduce the
user non- friendliness towards the software.

There are various kinds of users for the product. Usually web products are visited by
various users for different reasons.

MODULES:

Administrator:

He provides the information about the routes available

for a particular city.

* He can manage, add and update the information of the


Page 13
YD CAR

site.

 He have to manage the trip details.


 Have to provide a regular updates to customer

Customer:

* Customer must enter his registration details.

* Customer should provide his Traveling Information.

* Customer should book the trips by on-line using

Plastic card with online payments.

Specific Requirements

External Interface Requirements:

 User Interface: Accomplishes via mouse and keyboard input to the GUI based forms.

 Software Interface: The product requires to runtime Php environment in server machine.

3.1.5 Functional Requirements:

Page 14
YD CAR

Functional requirements are statements of the services that the system must provide or are
descriptions of how some computations must be carried out. The plan for implementing
functional requirements is detailed in the system design.

 Admin is provided with Username and Password to avoid unauthorized access.

 Basic and advance admin facilities like add/update/delete cars details are provided.

Non-Functional Requirements:

A non-functional requirement is a requirement that specifies criteria that can be used to judge
the operation of a system, rather than specific behaviours. This should be contrasted with
functional requirements that define specific behaviour or functions. The plan for
implementing non-functional requirements is detailed in the system architecture.

 The application is available from several locations and it is accessible 24*7 with the
help of internet.
 The code is easily understood and read because of the structure and coding style of
the application.
 Various components are provided in order to improve the performance at peak time.

3.2 DATAFLOW DAIGRAM

Page 15
YD CAR

The data flow diagram (DFD) is one of the important modelling tools. It shows the
user of the data pictorially. DFD represents the flow of the data between different
transformations and processes in the system. The data flow diagram shows logical flow of
the data. It represents the functional dependencies within a system. It shows output values in
a computation are derived from input values. It is a simple pictorial representation or model
for system behaviour. It specifies, “What is to be done but not how is to be done”. It
describes the logical structure of the system. It relates data information to various processes
of the system. It follows top-down approach.

Data Flow Diagram Notations:

Data Flow:

It may be from file-to-file or file-to-process or process- process. It is generally in terms of


attributes. There may be either an input data flow or output data flow.

Functional Processing:

The process is nothing but the transformation of data it starts with the subject and it has
the verb followed by the subject.

Data store:

Or

It includes file, database and repository. To parallel lines represent it or a one end closed
rectangle.

Actor/source/sink:

Page 16
YD CAR

The files which are outside the system and used by the process or the processes of the
system. Generally Source/Sink in the actor.

User

Login Login

Admin Authentic
AuthenticCustomer
Customer New User

Objectives:

• To graphically document boundaries of a system.

• To provide hierarchy breakdown of the system.

• To show movement of information between a system and its environment.

• To document information flows within the system.

• To aid communication between users and developer

Page 17
YD CAR

car1 car rate

volvos6 price_car

Add car_rate
szm46

Admin Add city city

Level ii

view city city Data Store

view travel

customer

add
direct booking booking Data Store

delete
booking Data Store
cancel

Page 18
YD CAR

Level iii

view city city Data Store

view travel

customer

add
direct booking booking Data Store

delete
booking Data Store
cancel
l

view car

car
view car time time Data Store
Process

view
car Data Store

booking

book Data Store

ER diagram
An entity-relationship diagram is a data modeling technique that creates a graphical
representation of the entities, and the relationships between entities, within an information

Page 19
YD CAR

system. An entity-relationship model (ERM) is an abstract and conceptual representation of


data. Entity- relationship modeling is a database modeling method, used to produce a type of
conceptual schema or semantic data model of a system, often a relational database, and its
requirements in a top-down fashion. Diagrams created by this process are called entity-
relationship diagrams, or ERDs.

The first stage of information system design uses models during the requirements
analysis to describe information needs or the type of information that is to be stored in a
database. The data modeling technique can be used to describe any ontology (i.e. an overview
and classifications of used terms and their relationships) for a certain area of interest. In the
case of the design of an information system that is based on a database, the conceptual data
model is, at a later stage (usually called logical design), mapped to a logical data model, such
as the relational model; this in turn is mapped to a physical model during physical design.
Sometimes, both of these phases are referred to as “physical design”.

There are three main components of an E-R Diagram:

 The entity is a person, object, place or event for which data is collected. For example, if
you consider the information system for a business, entities would include not only
customers, but the customer’s address, and orders as well. The entity is represented by
rectangle and labeled with a singular noun.
 The relationship is the interaction between the entities. In the example above, the
customer places an order, so the word “places” defines the relationship between that
instance of a customer and the order or orders that they place. A relationship may be
represented by a diamond shape, or more simply, by the line connecting the entities. In
either case, verbs are used to label the relationships.

 The cardinality defines the relationship between the entities in terms of numbers. An
entity may be optional: for example, a sales representative could have no customers or
could have one or many customers; or mandatory: for example, there must be at least one
product listed in an order. There are several different types of cardinality notations;

Page 20
YD CAR

crow’s foot notation, used here, is a common one. In crow’s foot notation, a single bar
indicates one, a double bar indicates one and only one (for example, a single instance of a
product can only be stored in one warehouse), a circle indicates zero, and a crow’s foot
indicates many. The three main cardinal relationships are: one-to-one, expressed as 1:1;
one-to-many, expressed as 1: N; and many-to-many, expressed as M: N.

Entity:

It is represented by one end rectangle. It is used for specifying a thing


capable of an independent existence that can be uniquely identified.

Relationships:

Relationships illustrate how two entities share information in the database structure. An
association among entities is called a relationship. An attribute can also be a property of a
relationship set. The association among the entities is described as one-to-one, one-to-many,
many-to-many. A relationship is indicated by a rhombus.

Attribute:

Page 21
YD CAR

Each entity has attributes or particular properties describe the entity. Most of the data
in a database consist of values of attributes. The set of all possible values of an attribute is the
attribute domain in an ER model; an attribute name appears in an oval that has line to the
corresponding entity box.

Primary key:

It is represented by oval. It is used for specifying every entity must have a minimal set of
uniquely identifying attributes, which is called the entity’s primary key.

Key attributes:

A key attribute is the unique, distinguishing characteristics of the entity. An attribute


or set of attributes that uniquely identifies a particular entity is a key. A key attribute in an ER
diagram is represented by an oval that has a line inside it and a line to the corresponding
entity box. For example, an employee’s social security number might be the employee’s key
attribute.

Multi-valued attribute

Page 22
YD CAR

A multi-valued attribute can have more than one value. We indicate this with a double oval.
For example, an employee entity can have multiple skill values.

Derived attributes:

A derived attribute is based on another attribute. It is denoted by a oval and dotted


line within it. For example, an employee’s monthly salary is based on the employee’s annual
salary.

Identifying relationship:

Identifying relationship is denoted by double rhombus.

Composite Attribute:

A composite attribute has multiple components is atomic or composite. We illustrate


this composite nature in the ER model by branching off composite attributes.

Weak Entity:

Page 23
YD CAR

A weak entity is an entity that must defined by a foreign key relationship with another
entity as it cannot be uniquely identified by its own attributes alone.

Total Participation:

Total participation is represented by a double line.

Cardinality:

Cardinality specifies how many instance of an entity relate to one instance of another
entity. Ordinarily is also closely linked to cardinality. While cardinality specifies the
occurrences of a relationship, ordinarily describes the relationship as either mandatory or
optional. In other words, cardinality specifies the maximum number of relationships and
ordinarily specifies the absolute minimum number of relationship.

Page 24
YD CAR

vehicle_id vehicle

manages
vehicle

vehicle_type
pump
vehicle model

driver_id
f_id

vehicle f_date

N
fuel f_amount

1 records starting_date
creates 1
admin
ser_date
ser_id td_id

ser_amount trip_details
N N

service
Licence_no
N trip_id

views
Driver Manges
vehicle_id
return_date

1
driver_id T_date
Trip_id cust_id
Driver_name
Customer

Trip Amount cust_name


T_gst 1
tp_id
cust_address

trip_id 1 book
Trip_payment
pays cust_gst

troll_charge
parking_charge

oth_charge

ENTITY RELATIONSHIP DAIGRAM:

4. IMPLEMENTATION

4.1 Languages used


Implementation is the realization of an application, or execution of a plan, idea, model,
design, specification, standard, algorithm, or policy and it is a process of having the systems
personnel check out and put new equipments into use, train users, install new application a
and construct any files of data needed to use it.

Once the software is developed for the system and testing is carried out, it is the process of
making the newly designed system fully operational and consistent in performance. To
implement ‘Customer Relationship Management’, we have made use PHP language with
Mysql.

Page 25
YD CAR

Why You Need WAMP, MySQL and PHP?

PHP is a powerful scripting language that can be run by itself in the command line of any
computer with PHP installed. As php is free source language we are designed a dynamic
application and php is the most supportive language for web based applications. Our website
needs wide communication so it helps .

As we are using php for our dynamic application and to run php we require a server, so
WAMP is the most suitable server. PHP files as it contains even Mysql server also which is
built within WAMP and we are using MySql as a back end tool to store the data. Hence we
used WAMP and Mysql.

4.1.1 PHP:

PHP is a scripting language originally designed for producing dynamic web pages. It
has evolved to include a command line interface capability and can be used in standalone
graphical applications. While PHP was originally created by Rasmus Lerdorf in 1995, the
main implementation of PHP is now produced by The PHP Group and serves as the de facto
standard for PHP as there is no formal specification.

PHP is free software released under the PHP License; however it is incompatible with
the GNU General Public License (GPL), due to restrictions on the usage of the term PHP. It
is a widely-used general-purpose scripting language that is especially suited for web
development and can be embedded into HTML. It generally runs on a web server, taking
PHP code as its input and creating web pages as output. It can be deployed on most web
servers and on almost every operating system and platform free of charge. PHP is installed on
more than twenty million websites and one million web servers. PHP originally stood for
Personal Home Page.

4.1.2 Usage:

PHP is a general-purpose scripting language that is especially suited for web


development. PHP generally runs on a web server, taking PHP code as its input and creating

Page 26
YD CAR

web pages as output. It can also be used for command-line scripting and client-side GUI
applications. PHP can be deployed on most web servers, many operating systems and
platforms, and can be used with many relational database management systems. It is available
free of charge, and the PHP Group provides the complete source code for users to build,
customize and extend for their own use.

PHP primarily acts as a filter, taking input from a file or stream containing text and/or
PHP instructions and outputs another stream of data; most commonly the output will be
HTML. It can automatically detect the language of the user. From PHP 4, the PHP parser
compiles input to produce byte code for processing by the Zend Engine, giving improved
performance over its interpreter predecessor. Originally designed to create dynamic web
pages, PHP’s principal focus is server-side scripting, and it is similar to other server-side
scripting languages that provide dynamic content from a web server to a client, such as
Microsoft’s Active Server Pages, Sun Microsystems’ Java Server Pages, and mod_perl. PHP
has also attracted the development of many frameworks that provide building blocks and a
design structure to promote rapid application development (RAD). Some of these include
CakePHP, Symfony, CodeIgniter, and Zend Framework, offering features similar to other
web application frameworks.

The WAMP architecture has become popular in the web industry as a way of
deploying web applications. PHP is commonly used as the PHP in this bundle alongside
Linux, Apache and MySQL, although the P may also refer to Python or Perl.As of April
2007, over 20 million Internet domains were hosted on servers with PHP installed, and PHP
was recorded as the most popular Apache module. Significant websites are written in PHP
including the user-facing portion of Face book, Wikipedia (MediaWiki), Yahoo!, My
Yearbook, , Digg, Wordpress and Tagged.

In addition to server-side scripting, PHP can be used to create stand-alone, compiled


applications and libraries, it can be used for shell scripting, and the PHP binaries can be
called from the command line.

Page 27
YD CAR

4.1.3 Speed optimization

As with many scripting languages, PHP scripts are normally kept as human-readable
source code, even on production web servers. In this case, PHP scripts will be compiled at
runtime by the PHP engine, which increases their execution time. PHP scripts are able to be
compiled before runtime using PHP compilers as with other programming languages such as
C (the language PHP and its extensions are written in). Code optimizers aim to reduce the
computational complexity of the compiled code by reducing its size and making other
changes that can reduce the execution time with the overall goal of improving performance.
The nature of the PHP compiler

is such that there are often opportunities for code optimization, and an example of a
code optimizer is the Zend Optimizer PHP extension.

Another approach for reducing overhead for high load PHP servers is using PHP
accelerators. These can offer significant performance gains by caching the compiled form of
a PHP script in shared memory to avoid the overhead of parsing and compiling the code
every time the script runs.

4.2 software used


4.2.1:HTML

Hyper Text Markup Language (HTML) is used to creating the web page either of
Static or of Dynamic and used to develop the user friendly web pages.
HTML is used for developing web pages.HTML is popularly used in World Wide
Web(WWW).It uses ASCII characters for both the main text and formatting instructions.
The main text is data and the whole information is used by the browser to format the data. A
HTML document is simply a text file, which contains certain information you would like to
publish.
A set of instructions embedded in a document is called Markup language. These
instructions describe what the document text means and how it should look in a display. The

Page 28
YD CAR

language also tells you how to make a document with other document on your local system,
the World Wide Web and other Internet resources such as FTP.
The global publishing format of the Internet is HTML. It allows authors to use not
only text but also format that text with headings, list and tables, and also includes still images
videos, and sound within text. Readers can access pages information from any where in the

world at the click of mouse button information can be downloaded to readers own PC or
workstations HTML pages can also be used for entering a data and as a front end for
commercial transaction.

4.2.2 Cascading Style Sheets (CSS):

It is a style sheet language used for describing the presentation of a document written in

a mark up language like HTML. CSS is a cornerstone technology of the WWW, alongside

HTML and Java Script.

CSS is designed to enable the separation of presentation and content, include


layout, colors .

and fonts. This separation can improve content accessibility, provide more flexibility and

control in the specification of presentation characteristics, enable multiple web Pages to share

formatting by specifying the relevant CSS in a separate .css file, and reduce complexity and

repetition in the structural content.

Separation of formatting and content also makes it feasible to present the same markup page

in different styles for different rendering methods, such as on-screen, in print, by voice (via

speech-based browser or screen reader), and on Braille baetactile devices. CSS also has rules

for alternate formatting if the content is accessed on a mobile Devices.

WAMP Server:

Stands for "Windows, Apache, Mysql, and PHP". WAMP is a variation of LAMP for
Windows systems and is often installed as a software bundle (Apache, Mysql, and PHP).
It is often used for web development and internal testing, but may also be used to serve
live websites.

Page 29
YD CAR

The most important part of the WAMP package is Apache (or "Apache HTTP Server")
which is used run the web server within Windows. By running a local Apache web
server on a Windows machine, a web developer can test WebPages in a web browser
without publishing them live on the Internet.

WAMP also includes Mysql and PHP, which are two of the most common technologies
used for creating dynamic websites. Mysql is a high-speed database, while PHP is a
scripting language that can be used to access data from the database. By installing these
two components locally, a developer can build and test a dynamic website before
publishing it to a public web server.

While Apache, Mysql, and PHP are open source components that can be installed
individually, they are usually installed together. One popular package is called
"WampServer," which provides a user-friendly way to install and configure the "AMP"
components on Windows.

4.2.3:MY SQL

What is a database? Quite simply, it’s an organized collection of data. A database


management system (DBMS) such as Access, FileMaker Pro, Oracle or SQL Server provides
you with the software tools you need to organize that data in a flexible manner. It includes
facilities to add, modify or delete data from the database, ask questions (or queries) about the
data stored in the database and produce reports summarizing selected contents.

MySql is a multithreaded, multi-user SQL database management system (DBMS).


The basic program runs as a server providing multi-user access to a number of databases.
Originally financed in a similar fashion to the JBoss model, MySql was owned and sponsored
by a single for-profit firm, the Swedish company MySQLAB now a subsidiary of Sun Micro
system , which holds the copyright to most of the codebase.

Page 30
YD CAR

The project’s source code is available under terms of the GNU General Public
License, as well as under a variety of proprietary agreements. MySql is a database. The data
in MySql is stored in database objects called tables. A table is a collection of related data
entries and it consists of columns and rows. Databases are useful when storing information
categorically.

MYSQL FUNCTIONS:

What is a database? Quite simply, it’s an organized collection of data. A database


management system (DBMS) such as Access, FileMaker Pro, Oracle or SQL Server provides
you with the software tools you need to organize that data in a flexible manner. It includes
facilities to add, modify or delete data from the database, ask questions (or queries) about the
data stored in the database and produce reports summarizing selected contents.

CREATE A CONNECTION TO A DATABASE:

Before you can access data in a database, you must create a connection to the database.
In PHP, this is done with the mysql_connect() function.

Syntax: Mysql connect (server name, username, password);

Server name: Optional Specifies the Server to connect. Default values is localhost: 3306

STEPS TO CREATE A DATABASE IN PHPMYADMIN:

1) The following figure shows your PHPMyAdmin interface, just enter your database name
and click the 'Create' button to create your database.

Page 31
YD CAR

2) Now to create a new table enter your table name and the number of fields in the table, then
click the 'Go' Button.

Page 32
YD CAR

3) The next step is to create the fields, just enter values for each field name, type, length
of the field, null option and mention whether it is a primary key or not. Then click the 'Save'
button to complete your table creation.

4) The following figure is displayed upon successful creation of your table

Page 33
YD CAR

Steps to Drop Table in PHPMyAdmin

Login to phpmyadmin. Click 'databases'

A list of your databases will appear. Click the one that is your WordPress database.

Example:

Page 34
YD CAR

Tables of Ad-well media:

Code:
1) Trip form

Trip_id number Trip_id is serial no


of trip details
Trip_cust_name text Users name
Trip_cust_contact number Cust_cont_number
Driver_id number Driver_details
Trip_sheet_no number Package_details_no
Trip_view Text with number About Trip_details
Vehicle_id number Types of car
Oth_veh_id number Oth type car

2) Trip_insert code:

<body>

<?php

$trip_cust_name=$_POST['trip_cust_name'];

$trip_cust_address=$_POST['trip_cust_address'];

$trip_cust_cont=$_POST['trip_cust_cont'];

$trip_cust_gst=$_POST['trip_cust_gst'];

$trip_sheet_no=$_POST['trip_sheet_no'];

$driver_id=$_POST['driver_id'];

Page 35
YD CAR

$oth_dri_name=$_POST['oth_dri_name'];

$oth_dri_no=$_POST['oth_dri_no'];

$vehicle_id=$_POST['vehocle_id'];

$oth_veh_det=$_POST['oth_veh_det'];

$oth_veh_no=$_POST['oth_veh_no'];

$price_km=$_POST['price_km'];

$trip_date=$_POST['trip_date'];

$con=mysql_connect('localhost','root','');

mysql_select_db('car',$con);

$sql="insert into trip


values(null,'$trip_cust_name','$trip_cust_address','$trip_cust_cont','$trip_c
ust_gst','$trip_sheet_no','$driver_id','$oth_dri_name','$oth_dri_no','$vehicl
e_id','$oth_veh_det','$oth_veh_no','$price_km','$trip_date')";

mysql_query($sql);

?>

</body>

3) Trip_view code:
form name="form1" method="post" action="">

<table width="427" border="1">

<tr>

<td width="8">trip_id</td>

<td width="8">trip_cust_name</td>

<td width="8">trip_cust_address</td>

<td width="8">trip_cust_contact</td>

<td width="8">trip_cust_GST</td>

<td width="8">trip_sheet_no</td>

<td width="8">driver_id</td>

<td width="8">oth_dri_name</td>

Page 36
YD CAR

<td width="8">oth_dri_no</td>

<td width="8">vehicle_id</td>

<td width="26">oth_veh_det</td>

<td width="35">oth_veh_no</td>

<td width="61">price_km</td>

<td width="137">trip_date</td>

<td> </td>

</tr>

<?php

$con=mysql_connect('localhost','root','');

mysql_select_db('car',$con);

$sql="select * from trip";

$res=mysql_query($sql);

while($r=mysql_fetch_array($res))

?>

<tr>

<td><?php echo $r['trip_id'];?></td>

<td><?php echo $r['trip_cust_name'];?></td>

<td><?php echo $r['trip_cust_address'];?></td>

<td><?php echo $r['trip_cust_contact'];?></td>

<td><?php echo $r['trip_cust_GST'];?>;</td>

<td><?php echo $r['trip_sheet_no'];?></td>

<td><?php echo $r['drver_id'];?></td>

<td><?php echo $r['oth_dri_name'];?></td>

<td><?php echo $r['oth_dri_no'];?></td>

<td><?php echo $r['vehicle_id'];?></td>

<td><?php echo $r['oth_veh_det'];?></td>

<td><?php echo $r['oth_veh_no'];?></td>

<td><?php echo $r['price_km'];?></td>

<td><?php echo $r['trip_date'];?>/td>

Page 37
YD CAR

<td><a href="trip_delete.php?id=<?php echo $r['trip_id'];?>">delete</a></td>

<td><a href="trip_edit.php?id=<?php echo $r['trip_id'];?>">edit</a></td>

</tr>

<?php

?>

</table>

</form>

</body>

4)Trip Delete code:

<body>

<?php

$id=$_REQUEST['id'];

$con=mysql_connect('localhost','root','');

mysql_select_db('car',$con);

$sql="delete from trip where trip_id='$id'";

$r=mysql_query($sql);

?>

<script>

alert=('row deleted');

document.location="trip_view.php";

</script>

4) Edit code
<?php
$id=$_REQUEST['id'];
$con=mysql_connect('localhost','root','');
mysql_select_db('car',$con);

$sql="select * from trip where trip__id='$id'";


$res=mysql_query($sql);

Page 38
YD CAR

$row=mysql_fetch_array($res);
?>
<form name="form1" method="post" action="trip_insert.php">

<table width="200" border="1" align="center">


<tr>
<td>trip_cust_name</td>
<td><input name="trip_cust_name" type="text" id="trip_cust_name" value="<?php
echo $row['trip_cust_name'];?>"></td>
</tr>
<tr>
<td>trip_cust_address</td>
<td><input name="trip_cust_address" type="text" id="trip_cust_address" value="<?php
echo $row['trip_cust_address'];?>"></td>
</tr>
<tr>
<td>trip_cust_cont</td>
<td><input name="trip_cust_cont" type="text" id="trip_cust_cont" value="<?php echo
$row['trip_cust_cont'];?>"></td>
</tr>
<tr>
<td>trip_cust_gst</td>
<td><input name="trip_cust_gst" type="text" id="trip_cust_gst" value="<?php echo
$row['trip_cust_gst'];?>"></td>
</tr>
<tr>
<td>trip_sheet_no</td>
<td><input name="trip_sheet_no" type="text" id="trip_sheet_no" value="<?php echo
$row['trip_sheet_no'];?>"></td>
</tr>
<tr>
<td>driver_id</td>
<td><input name="driver_id" type="text" id="driver_id" value="<?php echo
$row['driver_id'];?>"></td>
</tr>
<tr>
<td>oth_dri_name</td>
<td><input name="oth_dri_name" type="text" id="oth_dri_name" value="<?php echo
$row['oth_dri_name'];?>"></td>
</tr>
<tr>
<td>oth_dri_no</td>
<td><input name="oth_dri_no" type="text" id="oth_dri_no" value="<?php echo
$row['oth_dri_no'];?>"></td>
</tr>

Page 39
YD CAR

<tr>
<td height="63">vehicle_id</td>
<td><input name="vehicle_id" type="text" id="vehicle_id" value="<?php echo
$row['vehicle_id'];?>"></td>
</tr>
<tr>
<td>oth_veh_det</td>
<td><input name="oth_veh_det" type="text" id="oth_veh_det" value="<?php echo
$row['oth_veh_det'];?>"></td>
</tr>
<tr>
<td>oth_veh_no</td>
<td><input name="oth_veh_no" type="text" id="oth_veh_no" value="<?php echo
$row['oth_veh_no'];?>"></td>
</tr>
<tr>
<td>price_km</td>
<td><input name="price_km" type="text" id="price_km" value="<?php echo
$row['price_km'];?>"></td>
</tr>
<tr>
<td>trip_date</td>
<td><input name="trip_date" type="text" id="trip_date" value="<?php echo
$row['trip_date'];?>"></td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Reset" value="Reset">
</p>
Update code
<?php
$trip_cust_name=$_POST['trip_cust_name'];
$trip_cust_address=$_POST['trip_cust_address'];
$trip_cust_cont=$_POST['trip_cust_cont'];
$trip_cust_gst=$_POST['trip_cust_gst'];
$trip_sheet_no=$_POST['trip_sheet_no'];
$driver_id=$_POST['driver_id'];
$oth_dri_name=$_POST['oth_dri_name'];
$oth_dri_no=$_POST['oth_dri_no'];
$vehicle_id=$_POST['vehocle_id'];
$oth_veh_det=$_POST['oth_veh_det'];
$oth_veh_no=$_POST['oth_veh_no'];
$price_km=$_POST['price_km'];
$trip_date=$_POST['trip_date'];

Page 40
YD CAR

$con=mysql_connect('localhost','root','');
mysql_select_db('car',$con);
$sql="update set trip
trip_cust_name='$trip_cust_name',trip_cust_address='$trip_cust_address',trip_cust_cont='
$trip_cust_cont',trip_cust_gst='$trip_cust_gst',
trip_sheet_no='$trip_sheet_no',driver_id='$driver_id',oth_dri_name='$oth_dri_name',oth_
dri_no='$oth_dri_no',vehicle_id='$vehicle_id',oth_veh_det='$oth_veh_det',oth_veh_no='$o
th_veh_no',
price_km='$price_km',trip_date='$trip_date' where trip_id='$trip_id'";
mysql_query($sql);
?>

5)

Page 41
YD CAR

Page 42
YD CAR

5.TESTING
Software testing:

The code is tested at various levels in software testing. Unit, system and user
acceptance testing’s are often performed. This is a grey area as many different opinions exist
as to what the stages of testing are and how much if any iteration occurs. Iteration is not
generally part of the waterfall model, but usually some occur at this stage.

Software testing is the execution of program to find its faults. The testing process focuses on
the logical internals of the software, ensuring that all statements have been tested and on the
functional externals, that is conducting test to uncover errors and ensure that defined inputs
will produce actual results agreed with required results. The following test strategies were
adopted to test the system.

Testing objective:
Testing is process of executing a program with the intent of finding an error. A good test
case is one that high probability of finding an as yet undiscovered error. A successful test is
one that uncovers an as yet undiscovered error. The above objectives imply a dramatic
change in view point. Testing cannot show the absence of defect, it can only show that
software errors are present.

TESTING STRATEGIES:

There are two general strategies for testing software. These are as follows:

Code testing:

This examines the logic of the program. To follow this test, cases are developed such that
every path of program is tested.

Specification testing:
Specification Testing examines the specification starting what the program should do and
how it should perform under various conditions. Then test cases are developed for each
condition and combinations of conditions and to be submitted for processing.

Page 43
YD CAR

Testing methods used:

Here black box testing and statistical testing are used. In black box testing, all
possible types of inputs and seen for corresponding outputs and if not giving, code
are corrected. In statistical testing, checking for all variables whether they assigned values
before using it, whether array bound correctly defined, whether looping statement
terminating without going to infinite loop, whether function parameter are passed in order
and about number of parameters etc., are checked successfully and found correct everything
working satisfactorily.

5.1 Details of Testing Methodologies:

Unit testing:

Individual components are tested to ensure that they operate correctly. Each component
tested independently without other system components.

Ex. Checked for Username and Password with the table, after the next module is loaded
session allocation.

Integration testing:

Integration testing is a systematic technique for constructing the program structure while at
the same time conducting test to uncover errors associated with interfacing. This testing is
done using the bottom-up approach to integrate the software components of the software
system in to functioning whole.

Acceptance testing:

User acceptance of the system is the key factor for the success of any system. This is
done by user. The system is given to the user and they test it with live data. Acceptance
testing involves the planning and execution of functional test. Performance tests, stress tests
in order to demonstrate that the implemented system satisfies its requirements. Two sets of
acceptance test can be run, those developed by the customer. The system has been tested
for its performance at unit level by the individuals through performance testing that is
designed to test the run time performance of the software. The performance of the fully
integrated system is tested and was found good.

Page 44
YD CAR

Performance testing:

Performance Testing can serve different purpose. It can demonstrate that the system meets
the performance criteria. It can compare two systems to find which performs better, or it can
measure what parts of the system or workload cause the system to perform badly. In the
diagnostic case, software engineers use tools such as profilers to measure what parts of a
device or software contributes most to the poor performance.

It was a good idea to do our stress testing early on, because it gave us time to fix some of the
unexpected deadlocks and stability problems that only occurred when components were
exposed to very high transaction volumes.

System testing:

System testing is actually a series of different tests whose primary purpose is fully to
exercise the computer-based system. The system tests that where applied are recovery
testing and performance testing. Finally a review or audit is conducted which is a final
evaluation that occurs only after operating the system long enough for user to have gained a
familiarity with it.

System testing was done by the inspection team to verify that all the functionality identified
is the software requirement specification has been implemented. Defects that crept in the
system has been found defect free and is working well. System testing is concerned with
interfaces, design logic, control flow recovery, procedures throughput, capacity and timing
characteristics of the entire system. For blank field, alphabets, number and special
character validation.

Page 45
YD CAR

5.2 SAMPLE TESTING USED

Validation Testing:
The system has been tested and implemented successfully and thus ensured that all
requirements as listed in the software requirements specification are completely fulfilled. In
case of erroneous input corresponding error messages are displayed.Black

Black Box Testing:

This method focuses on the functional requirements of the software. This testing enables
to derive set input conditions that will fully exercise all functional requirements of the
program. Black Box Testing attempts to find errors in the following category.

 Incorrect or missing functions.


 Interface errors.
 Error in external database access.
 Performance errors.
 Initialization and Termination errors

Page 46
YD CAR

White Box Testing:


This is performed early in the testing process, while Black Box testing is applied
during the last stage of testing. In this test cases are generated on the logic of each module
by drawing flow graphs of that module and logical decisions are tested on all the cases.

It has been used to generate the test case in the following test cases:

 Guarantee that all independent paths have been executed.


 Execute all logical decisions from their True and False side.
 Execute all loops at their boundaries and within their operational bounds.
 Execute internal data structures to ensure their validity.
 Ensure whether all the possible validity checks and validity lookups have
been provided to validate data entry.

Functional testing:

Functional tests provide a systematic demonstration of the functions tested that are available
as specified by the business and technical requirements, system documentation, and user
manuals.

Functional Testing is centered on the following items:

Valid Input : Identified classes of valid input must be accepted.

Invalid Input : Identified classes of invalid input must be accepted.

Functions : Identified functions must be exercised.

Output : Identified classes of application outputs must be exercised.

Systems/Procedures : Interfacing systems or procedures must be invoked.

Organization and preparation of functional tests is focused on requirements, key functions, or


special test cases. In addition, systematic coverage pertaining to identify Business process
flows, data fields, predefined processes, and successive processes must be considered for
testing. Before functional testing is complete, additional tests are identified and the effective
value of the current test is determined.

Page 47
YD CAR

Test Cases and Results:


8.4.1 Test Case 1: Login Page

Input Username and Password

Expected Output The main page for should be displayed

Actual Output The main page for admin is displayed

Result Successful

8.4.2 Test Case 2: Updating

Input Open the page for modification and make


necessary changes and press submit
button

Expected Output Changes should take place user side

Actual Output Changes have taken place

Result Successful

8.4.3 Test Case 3: Forget Password

Input To check whether when we selected the


forgot password link it is directing to forgot
password link page.

Expected Input To check whether in that page it must ask


the alternative hints to send the link.

Output The user will get the old password again.

Result Successful

6. RESULTS/SCREENSHOTS

Page 48
YD CAR

Page 49
YD CAR

7. CONCLUSION:
* Customer must enter his registration details.

* Customer should provide his Traveling Information.

* Customer should book the trips by on-line using

Plastic card with online payments.

7.1 FUTURE ENHANCEMENT OF THE PROJECT

 Right now the site is accessing through the websites, user


must access the sites information only through internet. To provide the
flexibility and easy to access our site information we are planning to
provide the same options through mobiles.
 Software provides the information about cities and from that
city which are the places the user can travel.
 We can book the cars on-line for the destination using plastic
card that is credit card.
 .

8. REFERENCES:
Books

Page 50
YD CAR

THANK YOU

Page 51

You might also like