Project Report

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

DECLARATION

I hereby declare that this project work titled “TONTADARYA


COMMUNICATION” is my original work and no part of it has been
submitted for any other degree purpose or published in any other from
till date

Signature
Sahana R.Kati
Veena K.Ranatur
ACKNOWLEDGEMENT
The sense of containment and elation that accompanies the
successful compilation of this project would be incomplete without
mentioning the names of the people, who helped us in completing this
project. People whose constant guidance, support and encouragement
results in its realization.
The satisfaction and happiness we feel at the successful
compilation of our project entitled “TONTADARY
TELECOMMUNICATION” would be incomplete if we did not
remember the people who made it possible and crowned our efforts
with success.
We take the privilege of thanking our Principal of Jagadguru
Tontadarya College Gadag, Prof.C.Lingareddy for his timely help and
inspiration during the tenure of this course.
We take the privilege of thanking our BCA co-ordinator of Jagadguru
Tontadarya College Gadag, Sudeep Kundagol and project guide
P.D.Renavkar for the dynamic guidance and encouragement.We are
deeply grateful to our all lecturer for guidance throughout the study.
. We raise our mind and heart in gratitude to the Almighty God for
showering His blessings on us. Thanks to our family who have
rendered constant support, concern and understanding.
. Project Associates:
Sahana R.Kati 15U11438
ABSTRACT

Mobile phone is an electronic devices used for communication and


messaging. Now days essential need of the society. These are available
in various make and brands in the market therefore repairing and
servicing of phones are also required to be done. this has got a
prospective market.
Selling mobile Accessories,repairing and Servicing of mobile phones
have a good market prospect all over the country. This business can be
started in a very less investment. Though branded companies have their
own service centre but the demand for repairing of mobile phones are
very high therefore more service centers are required.
INDEX

CHAPTER 1: INTRODUCTION

1.1. Objectives of the Project

CHAPTER 2: LITERATURE SURVEY

2.1 Existing System

2.2 Proposed System

CHAPTER 3: SYSTEM REQUIREMENTS

3.1 Hardware Requirements

3.2 Software Requirements

CHAPTER 4:SYSTEM DESIGN

4.1 Architecture Diagram

4.2 Database Design

4.3 Use case diagram

4.4 Data Flow Diagram

4.5 Sequence diagram

4.6 User Interface diagram


CHAPTER 5: TECHOLOGIES USED IN PROJECT

5.1 Introduction to HTML

5.2 Introduction to PHP

5.3 Introduction to Java Script

5.4 Introduction to XAMPP

5.5 Introduction to MYSQL

5.6 Introduction to TEMPLATE

CHAPTER 6: CODING

CHAPTER 7: SYSTEM LOGINS

7.1 Admin Login

7.2 Service Engineer Login

CHAPTER 8:CONCLUSION

CHAPTER 9:FUTURE ENCHANCEMENT

CHAPTER 10:BIBLIOGRAPHY
CHAPTER 1
INTRODUCTION
At Tontadary Communication center, experienced mobile engineers can
perform prompt service on all makes and models of the Mobiles. The
qualified technical staff diagnoses challenging problems for all models.
customers can send their mobiles Repair Request , to get Mobile Repair
Estimate.
Simply after filling the Mobile repair estimate form service center will
send the customers estimate. If the customer accepts the estimate service
center will start repairing the Mobile. mobile repairing engineers are
experienced in troubleshooting and fixing the most challenging
problems. Moreover, if a customer has faulty or broken mobile sitting
around not being used, Service center will buy it from the customer at a
fair price. Users have to click Sell your Mobile and provide service
center with some information about the mobile. Mobile Service Center
will respond shortly with an offer.
I am confident that this software package can be readily used by
non-programming personal avoiding human handled chance of error.
And provides a facility to maintain the stock details of accessories. This
project is used by two types of users

i. Service Engineer.
ii. Administrator (management of the shop).
1.1 OBJECTIVES OF THE PROJECT:

The objectives of the project are to:

i.Develop a functional & usable Tontadary Tele-Communication


Management System.

ii .This is useful for users as follows:


• To get servicing tips to save money on repairing by repairing your
Mobile yourself.
• To get upgrade and repair manuals.

iii. This is useful for Administers as follows:


• To add Accessories details sold from a particular showroom.
• Add servicing details of the Mobile.
• Add service center details.
• To store details of the stock available.
• Collecting Feedbacks from the customers or users.
iv. This is useful for Service Engineers as follows:
• To take the service orders from allotted list.
• Add work description and details of accessories used.

v. Report Generation:
• Add information about the accessories and spare parts available in
the company.
• To get rates of new Accessories.
• To sale you Accessories.
• To get rates of service.
CHAPTER 2
LITERATURE SURVEY

2.1 Existing System

The existing System required more time for processing.The process is


very slow and lengthy. Not any type of security is provide so it may lost
data. Difficult serch the pervious data. The manager of mobile service
centre should maintain the stock details of accessories & details of
receipts. Maintain stock of all mobile product when should calculate bill
along with GST, and update the stock using old manner.

2.2 Proposed System


 The data is very important asset for corporation so strong
authentication method is to be used to ensure security of
information from malicious user.
 Data is to be maintained at any cost.
 Easy to be customized in future. As the client demand some other
additional features. The complexity of customer’s company may
be different or if mode of business changes then the system has
capability to make appropriate modification to suite that change.
Customization is key factor of designing this software.
 Accuracy of all type of calculations are important and to be
achieved at any cost.
 This should always be observed during the development of the
software that the user is not from technical background, so the
software should be user friendly and can be handled easily.
 Storage of data should be easily accessible.
 The data retrieval and other manipulation related task which is
done at the database level should be fast enough.
 The product should fulfill user’s requirement.
CHAPTER 3
SYSTEM REQUIREMENTS
The need of today’s software development is competence in a GUI
based frontend tool, which can connect to Relational Database engines.
This gives then programmer the opportunity to develop client server
based commercial applications.

3.1 HARDWARE REQUIREMENTS


 Processor : Pentium 4 and onwards
 Main Memory : 1GB RAM
 Hard disk : 40GB

3.2 SOFTWARE REQUIREMENTS


 Operating system : Windows 8
 IDE for server side scripting : Net Beans
 Server side scripting : PHP
 Front end scripting : HTML
 Database server : My SQL
 Server : Apache
 Collection software for running PHP file : XAMPP
CHAPTER 4
SYSTEM DESIGN

The design document that we will develop during this


phase is the blueprint of the software. It describes how the solution to
the customer problem is to be built. Since solution to complex problems
isn’t usually found in the first try, iterations are most likely required.
This is true for software design as well. For this reason, any in the real
world. That is, the structure of the software design should (whenever
possible) mimic the structure of the problem domain. The design should
exhibit uniformity and integration. A design is uniform if it appears that
one person developed the entire thing. Rules of style and format should
be defined for a design team before design work begins. A design is
integrated if care is taken in defining interfaces between design
components.The design activity begins when the requirements document
for the software to be developed is available. This may be the SRS for
the complete system, as is the case if the waterfall model is being
followed or the requirements for the next "iteration" if the iterative
enhancement is being followed or the requirements for the prototype if
the prototyping is being followed. While the requirements specification
activity is entirely in the problem domain, design is the first step in
moving from the problem domain toward the solution domain. Design is
essentially the bridge between requirements specification and the final
solution for satisfying the requirements. The design of a system is
essentially a blueprint or a plan for a solution for the system. We
consider a system to be a set of components with clearly defined
behavior that interacts with each other in a fixed defined manner to
produce some behavior or services for its environment. A component of
a system can be considered a system, with its own components.
4.1 ARCHITECTURE DIAGRAM
4.2 Database Structures:

Database design is the first step of design activities that is modeled after
analysis of data collected at requirements analysis reveals the actual data
to be stored and the diresction of flow of data.
The general objective of database design is to make the information
access easy,quick,inexpensive and flexible.In the network environment
several users use the system at different levels of authorization;hence the
authorization level.

Database:Admin Register
This table gives information about the admin.This table contains
fields like loginid and password.
Database:Service Engineer

Database:Service Order
Database:Accessories

Database:Jobworks
Database:Sale Receipt

Database:Sale Details
Database:Service Receipt
4.3 USE CASE DIAGRAM

4.3.1 USE CASE DIAGRAM FOR ADMIN


4.3.2 USE CSE DIAGRAM FOR SERVICE ENGINEER
4.4 DATA FLOW DIAGRAM

CONTEXT LEVEL DIGRAM


4.5 SEQUENCE DIAGRAM

4.5.1 SEQUENCE DIAGRAM FOR ADMIN


4.5.2 SEQUENCE DIAGRAM FOR SERVICE ENGINEER
4.6 USER INTERFACE DIAGRAM

HOME PAGE
ADMIN LOGIN
ADMIN PAGE
SERVICE ENGINEER PAGE
CHAPTER 5
TECHOLOGIES USED IN PROJECT

5.1 INTRODUCTION TO HTML

HTML is a Major language of the Internet’s World Wide Web. Web


sites and web pages are written in HTML the World Wide Web is a
collection of linked documents or a pages on millions of computers
spread over the entire Internet.HTML defines their appearance and
layout and more importantly creates the links to other document

The global publishing format of the Internet is HTML. It allows


authors to use not only text but also format that text with headings, lists
and tables, and to include still images, video and sound within the text.
The language also tells you how to make a document with the other
document on your local system, the World Wide Web and other Internet
resources such as FTP.

Unlike Word Processors and Desktop publishing, the Webpage authors


writes instructions called tags which tell the browser how to read the
document.
Really this is much the same as using world Processor. The other
difference is that all the files are saved with an HTML or HTM file
extension.

Reader can access pages of information from anywhere in the World at


the click of mouse button. Information can be used for entering data as
the front-end for commercial transactions.

FEATURES Of HTML:

 It is not a Programming Language.


 Its not a Data Description Language.
 It is Simple to Understand and Implement.
 HTML constructs are very easy to comprehend, and can be used
effectively by anybody.
 The Methodology is used by HTML to Markup information is
independent. Of its representation on a particular hardware or
software architecture.
 HTML syntax is World Wide Standard.
5.2 INTRODUCTION TO PHP

PHP started out as a small open source project that evolved as more and
more people found out how useful it was. Rasmus Lerdorf unleashed the
first version of PHP way back in 1994.

 PHP is a recursive acronym for "PHP: Preprocessor Hypertext


Preprocessor".

 PHP is a server side scripting language that is embedded in HTML.


It is used to manage dynamic content, databases, session tracking,
even build entire e-commerce sites.

 It is integrated with a number of popular databases, including


MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft
SQL Server.

 PHP is pleasingly zippy in its execution, especially when compiled


as an Apache module on the Unix side. The MySQL server, once
started, executes even very complex queries with huge result sets
in record-setting time.
 PHP supports a large number of major protocols such as POP3,
IMAP, and LDAP. PHP4 added support for Java and distributed
object architectures (COM and CORBA), making n-tier
development a possibility for the first time.

 PHP is forgiving: PHP language tries to be as forgiving as


possible.

 PHP Syntax is C-Like.


Common uses of PHP:

PHP performs system functions, i.e. from files on a system it can create,
open, read, write, and close them. The other uses of PHP are:

 PHP can handle forms, i.e. gather data from files, save data to a
file, through email you can send data, return data to the user.

 You add, delete, modify elements within your database through


PHP.

 Access cookies variables and set cookies.

 Using PHP, you can restrict users to access some pages of your
website.

 It can encrypt data.

Characteristics of PHP:
Five important characteristics make PHP's practical nature possible:

 Simplicity

 Efficiency

 Security

 Flexibility

 Familiarity
"Hello World" Script in PHP

To get a feel for PHP, first start with simple PHP scripts. Since "Hello,
World!" is an essential example, first we will create a friendly little
"Hello, World!" script.
As mentioned earlier, PHP is embedded in HTML. That means that in
amongst your normal HTML (or XHTML if you're cutting-edge) you'll
have PHP statements like this:

<html>
<head>
<title>Hello World</title>
<body>
<?php echo "Hello, World!";?>
</body>
</html>

It will produce following result:

Hello, World!

If you examine the HTML output of the above example, you'll notice
that the PHP code is not present in the file sent from the server to your
Web browser. All of the PHP present in the Web page is processed and
stripped from the page; the only thing returned to the client from the
Web server is pure HTML output.
All PHP code must be included inside one of the three special markup
tags are recognized by the PHP Parser.

<?php PHP code goes here ?>


<? PHP code goes here ?>
<script language="php"> PHP code goes here </script>
Most common tag is the <?php...?>
5.3 INTRODUCTION TO JAVA SCRIPT

Java script is an interpreted, object-based scripting language.


Although it has fewer capabilities than full-fledged object-oriented
like c++ and Java, Java Script is more than sufficiently powerful for
its intended purposes. JavaScript is not a cut-down version of any
other language; it is not a simplification of anything.

It is, however, limited. You can not write stand alone application in it,
and it has little capability for reading or writing files. Moreover,
JavaScript can run only in the presence of an interpreter, either in a web
server or a web browser.

JavaScript is loosely typed language. That means you do not have to


declare that data types of variables explicitly.

It is scripting language used to develop Internet applications mostly for


client side validations. It has the features of windows , frames, buttons,
forms, images, list boxes, and so on. The main feature is most of the
browsers support Java Script. It has all the functionalities of a high level
language. It supports OOPS.

Java script is a fairly simple language which is only suitable for simple
task. The language is best suited to task which run for short timed and is
most commonly used to manipulate the pieces of the documentation
object model.
The idea behind finding java script is to find a Language which could be
used to provide client –side in-browser application but which was not as
complicated as java.

Benefits of Java Script:

Java script has a number of benefits to any one who wants to


make their web site dynamic:

 It is widely support in web browsers.


 It is easy to access to the document object and can manipulate most
of them.
 Java script can give interesting animations without the long
download.
 Web surfers don’t need special plug-in to user script.
 Java script is relatively secure.
 We can not get a various infections directly from java script.
5.4 INTRODUCTION TO XAMPP SERVER

XAMPP stands for Cross-Platform (X), Apache (A), MySQL (M), PHP
(P) and Perl (P). It is a simple, lightweight Apache distribution that
makes it extremely easy for developers to create a local web server for
testing purposes. Everything you need to set up a web server – server
application (Apache), database (MySQL), and scripting language
(PHP) – is included in a simple extractable file. XAMPP is also cross-
platform, which means it works equally well on Linux, Mac and
Windows. Since most actual web server deployments use the same
components as XAMPP, it makes transitioning from a local test server
to a live server is extremely easy as well.

What’s Included in XAMPP??

XAMPP has four primary components. These are:

1. Apache: Apache is the actual web server application that processes


and delivers web content to a computer. Apache is the most popular
web server online, powering nearly 54% of all websites.

2. MySQL: Every web application, howsoever simple or complicated,


requires a database for storing collected data. MySQL, which is open

source, is the world’s most popular database management system. It


powers everything from hobbyist websites to professional platforms
like WordPress.
3. PHP: PHP stands for Hypertext Preprocessor. It is a server-side
scripting language that powers some of the most popular websites in
the world, including WordPress and Facebook. It is open source,
relatively easy to learn, and works perfectly with MySQL, making it a
popular choice for web developers.

4. Perl: Perl is a high-level, dynamic programming language used


extensively in network programming, system admin, etc. Although less
popular for web development purposes, Perl has a lot of niche
applications.

Different versions of XAMPP may have additional components such as


phpMyAdmin, OpenSSL, etc.to reate full-fledged web servers.
5.5 INTRODUCTION TO MYSQL

MySQL is a leading open source database management system. It is a


multi-user, multithreaded database management system. MySQL is
especially popular on the web. It is one of the parts of the very popular
LAMP platform. Linux, Apache, MySQL and PHP. Currently MySQL is
owned by Oracle. MySQL database is available on most important OS
platforms. It runs on BSD Unix, Linux, Windows or Mac. Wikipedia,
YouTube, Facebook use MySQL. These sites manage millions of
queries each day. MySQL comes in two versions. MySQL server system
and MySQL embedded system.
The development of MySQL begun in 1994 by a Swedish company
MySQL AB. Sun Microsystems acquired MySQL AB in 2008. Sun was
bought by Oracle in 2010. So today, Oracle corporation is the owner of
the MySQL database.
MySQL, PostgreSQL, Firebird, SQLite, Derby, and HSQLDB are the
most well known open source database systems.
MySQL is developed in C/C++. Except of the C/C++, APIs exist for
PHP, Python, Java, C#, Eiffel, Ruby, Tcl or Perl.
Features of MySQL:

The following list shows the most important properties of MySQL. This
section is directed to the reader who already has some knowledge of
relational databases. We will use some terminology from the relational
database world without defining our terms exactly. On the other hand,
the explanations should make it possible for database novices to
understand to some extent what we are talking about.

Relational Database System: Like almost all other database systems on


the market, MySQL is a relational database system.
Client/Server Architecture: MySQL is a client/server system. There is
a database server (MySQL) and arbitrarily many clients (application
programs), which communicate with the server; that is, they query data,
save changes, etc. The clients can run on the same computer as the
server or on another computer (communication via a local network or
the Internet).

Almost all of the familiar large database systems (Oracle, Microsoft


SQL Server, etc.) are client/server systems. These are in contrast to the
file-server systems, which include Microsoft Access, dBase and FoxPro.
The decisive drawback to file-server systems is that when run over a
network, they become extremely inefficient as the number of users
grows.

SQL compatibility: MySQL supports as its database language -- as its


name suggests – SQL (Structured Query Language). SQL is a
standardized language for querying and updating data and for the
administration of a database. There are several SQL dialects (about as
many as there are database systems). MySQL adheres to the current
SQL standard (at the moment SQL:2003), although with significant
restrictions and a large number of extensions.

Stored procedures: Here we are dealing with SQL code that is stored in
the database system.

Stored procedures (SPs for short) are generally used to simplify certain
steps, such as inserting or deleting a data record. For client programmers
this has the advantage that they do not have to process the tables
directly, but can rely on SPs. Like views, SPs help in the administration
of large database projects. SPs can also increase efficiency. MySQL has
supported SPs since version 5.0.
Triggers: Triggers are SQL commands that are automatically executed
by the server in certain database operations (INSERT, UPDATE, and
DELETE). MySQL has supported triggers in a limited form from
version 5.0, and additional functionality is promised for version 5.1.

Unicode: MySQL has supported all conceivable character sets since


version 4.1, including Latin-1, Latin-2, and Unicode (either in the
variant UTF8 or UCS2).

User interface: There are a number of convenient user interfaces for


administering a MySQL server.

Full-text search: Full-text search simplifies and accelerates the search


for words that are located within a text field. If you employ MySQL for
storing text (such as in an Internet discussion group), you can use full-
text search to implement simply an efficient search function.

Replication: Replication allows the contents of a database to be copied


(replicated) onto a number of computers. In practice, this is done for two
reasons: to increase protection against system failure (so that if one
computer goes down, another can be put into service) and to improve the
speed of database queries.

Transactions: In the context of a database system, a transaction means


the execution of several database operations as a block. The database
system ensures that either all of the operations are correctly executed or
none of them. This holds even if in the middle of a transaction there is a
power failure, the computer crashes, or some other disaster occurs. Thus,
for example, it cannot occur that a sum of money is withdrawn from
account A but fails to be deposited in account B due to some type of
system error.
Foreign key constraints: These are rules that ensure that there are no
cross references in linked tables that lead to nowhere. MySQL supports
foreign key constraints for InnoDB tables.

Programming languages: There are quite a number of APIs


(application programming interfaces) and libraries for the development
of MySQL applications. For client programming you can use, among
others, the languages C, C++, Java, Perl, PHP, Python, and Tcl.

Platform independence: It is not only client applications that run under


a variety of operating systems; MySQL itself (that is, the server) can be
executed under a number of operating systems. The most important are
Apple Macintosh OS X, Linux, Microsoft Windows, and the countless
Unix variants, such as AIX, BSDI, FreeBSD, HP-UX, OpenBSD, Net
BSD, SGI Iris, and Sun Solaris.

Speed: MySQL is considered a very fast database program. This speed


has been backed up by a large number of benchmark tests (though such
tests -- regardless of the source -- should be considered with a good dose
of skepticism).
TEN REASONS TO USE MySQL:
1. Scalability and Flexibility:
The MySQL database server provides the ultimate in scalability,
sporting the capacity to handle deeply embedded applications with a
footprint of only 1MB to running massive data warehouses holding
terabytes of information. Platform flexibility is a stalwart feature of
MySQL with all flavors of Linux, UNIX, and Windows being supported.
And, of course, the open source nature of MySQL allows complete
customization for those wanting to add unique requirements to the
database server.

2. High Performance:
A unique storage-engine architecture allows database professionals to
configure the MySQL database server specifically for particular
applications, with the end result being amazing performance results.
Whether the intended application is a high-speed transactional
processing system or a high-volume web site that services a billion
queries a day, MySQL can meet the most demanding performance
expectations of any system. With high-speed load utilities, distinctive
memory caches, full text indexes, and other performance-enhancing
mechanisms, MySQL offers all the right ammunition for today's critical
business systems.
3. High Availability:
Rock-solid reliability and constant availability are hallmarks of MySQL,
with customers relying on MySQL to guarantee around-the-clock
uptime. MySQL offers a variety of high-availability options from high-
speed master/slave replication configurations, to specialized Cluster
servers offering instant failover, to third party vendors offering unique
high-availability solutions for the MySQL database server.

4. Robust Transactional Support:


MySQL offers one of the most powerful transactional database engines
on the market. Features include complete ACID (atomic, consistent,
isolated, durable) transaction support, unlimited row-level locking,
distributed transaction capability, and multi-version transaction support
where readers never block writers and vice-versa. Full data integrity is
also assured through server-enforced referential integrity, specialized
transaction isolation levels, and instant deadlock detection.

5. Web and Data Warehouse Strengths:


MySQL is the de-facto standard for high-traffic web sites because of its
high-performance query engine, tremendously fast data insert capability,
and strong support for specialized web functions like fast full text
searches. These same strengths also apply to data warehousing
environments where MySQL scales up into the terabyte range for either
single servers or scale-out architectures. Other features like main
memory tables, B-tree and hash indexes, and compressed archive tables
that reduce storage requirements by up to eighty-percent make MySQL a
strong standout for both web and business intelligence applications.
6. Strong Data Protection:
Because guarding the data assets of corporations is the number one job
of database professionals, MySQL offers exceptional security features
that ensure absolute data protection. In terms of database authentication,
MySQL provides powerful mechanisms for ensuring only authorized
users have entry to the database server, with the ability to block users
down to the client machine level being possible. SSH and SSL support
are also provided to ensure safe and secure connections. A granular
object privilege framework is present so that users only see the data they
should, and powerful data encryption and decryption functions ensure
that sensitive data is protected from unauthorized viewing. Finally,
backup and recovery utilities provided through MySQL and third party
software vendors allow for complete logical and physical backup as well
as full and point-in-time recovery.

7. Comprehensive Application Development:


One of the reasons MySQL is the world's most popular open source
database is that it provides comprehensive support for every application
development need. Within the database, support can be found for stored
procedures, triggers, functions, views, cursors, ANSI-standard SQL, and
more. For embedded applications, plug-in libraries are available to
embed MySQL database support into nearly any application. MySQL
also provides connectors and drivers (ODBC, JDBC, etc.) that allow all
forms of applications to make use of MySQL as a preferred data
management server. It doesn't matter if it's PHP, Perl, Java, Visual
Basic, or .NET, MySQL offers application developers everything they
need to be successful in building database-driven information systems.
8. Management Ease:
MySQL offers exceptional quick-start capability with the average time
from software download to installation completion being less than
fifteen minutes. This rule holds true whether the platform is Microsoft
Windows, Linux, Macintosh, or UNIX. Once installed, self-management
features like automatic space expansion, auto-restart, and dynamic
configuration changes take much of the burden off already overworked
database administrators. MySQL also provides a complete suite of
graphical management and migration tools that allow a DBA to manage,
troubleshoot, and control the operation of many MySQL servers from a
single workstation. Many third party software vendor tools are also
available for MySQL that handle tasks ranging from data design and
ETL, to complete database administration, job management, and
performance monitoring.

9. Open Source Freedom and 24 x 7 Support:


Many corporations are hesitant to fully commit to open source software
because they believe they can't get the type of support or professional
service safety nets they currently rely on with proprietary software to
ensure the overall success of their key applications. The questions of
indemnification come up often as well. These worries can be put to rest
with MySQL as complete around-the-clock support as well as
indemnification is available through MySQL Network. MySQL is not a
typical open source project as all the software is owned and supported
by MySQL AB, and because of this, a unique cost and support model are
available that provides a unique combination of open source freedom
and trusted software with support.
10. Lowest Total Cost of Ownership:
By migrating current database-drive applications to MySQL, or using
MySQL for new development projects, corporations are realizing cost
savings that many times stretch into seven figures. Accomplished
through the use of the MySQL database server and scale-out
architectures that utilize low-cost commodity hardware, corporations are
finding that they can achieve amazing levels of scalability and
performance, all at a cost that is far less than those offered by
proprietary and scale-up software vendors. In addition, the reliability and
easy maintainability of MySQL means that database administrators don't
waste time troubleshooting performance or downtime issues, but instead
can concentrate on making a positive impact on higher level tasks that
involve the business side of data.
DATABASE CONNECTIVITY
A database is a separate application that stores a collection of data. Each
database has one or more distinct APIs for creating, accessing,
managing, searching and replicating the data it holds.

Other kinds of data stores can be used, such as files on the file system or
large hash tables in memory, but data fetching and writing would not be
so fast and easy with those types of systems.

So nowadays, we use relational database management systems


(RDBMS) to store and manage huge volume of data. This is called
relational database because all the data is stored into different tables and
relations are established using primary keys or other keys known as
foreign keys.

 MySQL Database:

MySQL is a fast, easy-to-use RDBMS being used for many small and
big businesses. MySQL is developed, marketed, and supported by
MySQL AB, which is a Swedish company. MySQL is becoming so
popular because of many good reasons:
 MySQL is released under an open-source license. So you have
nothing to pay to use it.

 MySQL is a very powerful program in its own right. It handles a


large subset of the functionality of the most expensive and
powerful database packages.

 MySQL uses a standard form of the well-known SQL data


language.
 MySQL works on many operating systems and with many
languages including PHP, PERL, C, C++, JAVA, etc.

 MySQL works very quickly and works well even with large data
sets.

 MySQL is very friendly to PHP, the most appreciated language for


web development.

 MySQL supports large databases, up to 50 million rows or more in


a table. The default file size limit for a table is 4GB, but you can
increase this (if your operating system can handle it) to a
theoretical limit of 8 million terabytes (TB).

 MySQL is customizable. The open-source GPL license allows


programmers to modify the MySQL software to fit their own
specific environments.

 PHP Syntax
MySQL works very well in combination of various programming
languages like PERL, C, C++, JAVA and PHP. Out of these languages,
PHP is the most popular one because of its web application development
capabilities.

This is focuses heavily on using MySQL in a PHP environment. If you


are interested in MySQL with PERL, then you can look into PERL and
MySQL.

PHP provides various functions to access MySQL database and to


manipulate data records inside MySQL database. You would require to
call PHP functions in the same way you call any other PHP function.
5.6 INTRODUCTION TO TEMPLET
A lot of people get tempted by good looking web
templates.Some template vendors even offer do-it-yourself kits to
their customers. Web templates are designed by experts, using the
latest designing software.

They look stunning, compared to web pages developed by


other means. While readymade templates offer several advantages,
they have some disadvantages too.

Advantages of Using Templates:

1. You know how your finished site looks. You can choose the
template that appeals to you. You need not rely on a web
developer to get a good looking web site
.
2.Faster turnaround. You need not spend a lot of time on getting
the colors and layout right. You can go straight to changing text
and proceed with programming.

3.Templates are much cheaper than hiring a web developer. There


are several sites that offer free templates as well.
4. Templates look much better than sites developed in
traditional HTML Programming. Templates are designed by
professionals that are creative and competent and experienced.

5. Templates can be customized by anyone with basic HTML


knowledge.
CHAPTER 6
CODING
Addaccessories.php

<html>
<head>
<meta charset="UTF-8">
<title></title>
<?php
include './admin_link.php';
?>
</head>
<body>
<?php
include './admin_header.php';
?>
<form method="POST" action="addaccessories_prc.php">
<table>
<tr>
<td>Accessoryname</td>
<td><inpu type="text" name="txtaccessoryname"
required="true"/></td>
</tr>

<tr>
<td>Priceperunit</td>
<td><input type="text" name="txtpriceperunit"
required="true"/></td>
</tr>

<tr>
<td>Totalitems</td>
<td><input type="text" name="txttotalitems"
required="true"/></td>
</tr>

<tr>
<td><input type="submit" name="btnadd" value="add"</td>
<td><input type="reset" value="cancle"/></td>
</tr>
<?php
if(isset($_REQUEST["error"]))
{
echo $_REQUEST["error"];
}
?>
</table>
</form>
<?php
// put your code here
?>

<?php
include './admin_footer.php';
?>
</body>
</html>
addaccessories_prc.php

<?php
include './admin_link.php';
?>
<?php
include './admin_header.php';
?>

<?php
$error="";
if(!preg_match("/^[A-Z a-z]+$/",$_POST["txtaccessoryname"]))
{
$error.="Please enter accessoryname in characters ";
}
else
{
$accessoryname=$_POST["txtaccessoryname"];
}
if(!preg_match("/^[0-9]+$/",$_POST["txtpriceperunit"]))
{
$error.="please enter price in digits";
}
else
{
$priceperunit=$_POST["txtpriceperunit"];
}
if(!preg_match("/^[0-9]+$/",$_POST["txttotalitems"]))
{
$error.="please enter only digits";
}
else
{
$totalitems=$_POST["txttotalitems"];
}
if(isset($accessoryname)&&isset($priceperunit)&&isset($totalitems))
{

$username='root';
$passwd=null;
try{
$conn=new
PDO("mysql:host=localhost;dbname=service",$username,$passwd);
$stmt=$conn->prepare("insert into
accessories(accessoryname,priceperunit,totalitems)values(?,?,?)");
$stmt->bindParam(1,$accessoryname);
$stmt->bindParam(2,$priceperunit);
$stmt->bindParam(3,$totalitems);
if($stmt->execute())
{
$msg="inserted";
}

else {
$msg="insert failed";
}
}
catch (Exception $exception)
{
$msg=$exception->getMessage();
}
echo $msg;

}
else if(isset ($error))
{
header("location:addaccessories.php?error=$error");
}

?>
<?php
include './admin_footer.php';
?>
CHAPTER 7
SYSTEM LOGINS
There will be 2 logins as mentioned below.
6.1 Admin Login:
Admin will have complete access to the system. He will be
creating the user and updating the details for the user. The details
are listed below.
-Adding accessories.
-Adding Service Engineers.
-Adding Service Orders.
-He can view the details of Accessory,Service Engineers and
Service Orders..
-He will send the mobile for services to the specific Service
Engineer.
-After Service Engineer will repaired the mobile he has to
given to admin and he will genarete the bill for customer.

6.2 Service Engineers Login:


Respective Service Engineer will be check the given mobile and
service/repaired it properly.After that he will give the mobile to
admin. The details are listed below.
-He will Select an order.
-Proccess the given job.
CHAPTER 8
CONCLUSION
The developed software is tested with a sample data and
output obtained are according to the requirements. The performance of
the system is evaluated, and is found to be much more efficient than the
existing system .
Using solid techniques and good programming practice to
create high quality code plays an important role in software quality and
performance.
The project is cost effective and time efficient.It greatly
reduces the cost and time consumption of the users.
The greatest learning experience comes from the work carried
out using PHP technology,which is one of the important techniques
required in current software industries.
The technology and idea is finalized as we did required.We
are sure that we will develop this application as it is proposed and will
be useful.We assume that the application will up and running within the
dedalines.
CHAPTER 9
FUTURE ENHANCEMENT

There are the Future Enhancements we are going to do in our system.


And may be some other kind future changes will be possible in our
system also.

 We convert our system into website.


 Pay payment via Credit / Debit Card.

Next version will also resolve any error or mistake remained unsolved
in this version.
CHAPTER 10
BIBLIOGRAPHY

BOOK NAME Author

1.Programming:A Bigineers Guide Alon Forbes


2. Head First PHP and MySql Lynn Beighley and Morrison
3. MS SQL Server 2008 E Petroutsos

ONLINE REFERENCE

 http:/www.google.com
 http:/www.googleimages.com

You might also like