0% found this document useful (0 votes)
25 views76 pages

Vish

hjyjjjjjjj

Uploaded by

agalyaperumal
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)
25 views76 pages

Vish

hjyjjjjjjj

Uploaded by

agalyaperumal
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/ 76

FARMING ASSISTANT SYSTEM

ABSTRACT
A Web project to help farmers ensure greater profitability through direct farmer to user
communication. This service boosts business communication and brings transparency in the
system. This innovative site allows for good farmer, user communication. It allows farmers to
login and communicate to respective user. The agricultural information system provides its
users and researches to get online information about, the crop, fertilizer details, farming
accessories weather condition and new tendencies. The trends of the crops act so that these
will be pretty important to the users who access these via the Internet. The main features of
the information system includes information retrieval facilities for users from anywhere in the
form of obtaining statistical information about fertilizer, research institutes and researches,
etc. In addition this provides individual information about Intercrops related to main crops.
This project helps the farmers to get direct solution from experts. The system allows the
retrieving facilities but also the updating facilities to the authorized persons in the
corresponding institutes.
CHAPTER 1

INTRODUCTION
1. INTRODUCTION

1.1 NEED OF THE PROJECT

The agriculture is basic reason of production of food and raw material, which eventually is
reason of survival of the population. In Indian most of the population is dependent on
agriculture. However, there is also need to review and revitalize the mechanism for updating
the technology. In the upcoming years agriculture will see major changes. Unlike the earlier
'green revolution' which had a foundation of advanced pesticides and fertilizers, now the
agriculture will be revolutionized with the help of technology. Today mobile devices are used
frequently by everyone, including the farmers and countryside people. According to
observations of Information and Communication Technologies (ICT) mobile plays vital role
in daily life of farmers. The farmers, who were dependent on clouds for rain, now are looking
into the Cloud Computing (CC) for their solutions towards cultivation of superior crops in
today’s modern agricultural world. The traditional methods used by the farmers, peculiarly in
India, are very slow and undependable. The large amount of crop is getting damage in the
field due to the bacterial attacks and lack of information resources.
CHAPTER 2

SYSTEM ANALYSIS
2. SYSTEM ANALYSIS

2.1 PROBLEM DEFINITION

The word agriculture is the English adaptation of Latin agriculture, from ager, "a
field" and cultural, "cultivation" in the strict sense of "till age of the soil". Thus, a literal
reading of the word yields "till age of fields". However, all farming generally relies on
techniques to expand and maintain the lands that are suitable for raising domesticated species.

2.2 EXISTING SYSTEM

The existing system is handled manually. The system follows large number of paper work for
maintaining agricultural products details and user can be difficult to search the agricultural
products in manual process. In current system the user don’t know about agricultural products
details or agricultural product seller details and where it will be sale. In this existing system
takes lots of time for searching particular seller or product.

DISADVANTAGE OF EXISTING SYSTEM

• Lots of the time consumed for each report generation.


• Immediate response to the queries is difficult.
• More stationary use so they are expensive.
• Manual system is takes more time.
• Existing system is manually, so it increases the chances of errors.

2.3 PROPOSED SYSTEM

The proposed system is developed after a detailed study about the requirements requested by
the user. Proposed system is a computerized one, where all the limitations of manual system
are compensated. Product details of Farming Assistant System have simplified the working
information and make a user friendly environment, where the user is provided with much
flexibility to manage effectively. It helps the admin to generate desirable reports more
quickly and also to produce better results.
ADVANTAGE OF PROPOSED SYSTEM

• Reduction of paper work


• Automation of existing manual information systems.
• Reduction of manual processing
• Keep track of daily information exchange at the server by the administrator.
• Increase in processing and transfer speeds of information over the network.
• Decrease in processing time

2.4 SYSTEM REQUIREMENT

2.4.1 HARDWARE REQUIREMENT


• Processor : Dual core processor 2.6.0 GHZ
• RAM : 4GB
• Hard disk : 320 GB
• Compact Disk : 650 Mb
• Keyboard : Standard keyboard

2.4.2 SOFTWARE REQUIREMENT

• Operating system : Windows OS


• Front End : PHP
• Back end : MYSQL Server
• Tool : Macromedia Dreamweaver 8
CHAPTER 3

SYSTEM DESIGN
3.SYSTEM DESIGN

3.1 ARCHITECTURAL DESIGN

A system architecture or systems architecture is the conceptual model that defines the
structure, behavior, and more views of a system. An architecture description is a formal
description and representation of a system, organized in a way that supports reasoning about
the structures and behaviors of the system. System architecture can comprise system
components, the externally visible properties of those components, the relationships (e.g. the
behavior) between them. It can provide a plan from which products can be procured, and
systems developed, that will work together to implement the overall system. There have been
efforts to formalize languages to describe system architecture, collectively these are called
architecture description languages (ADLs).

Various organizations define systems architecture in different ways, including:

• An allocated arrangement of physical elements which provides the design solution for
a consumer product or life-cycle process intended to satisfy the requirements of the
functional architecture and the requirements baseline.
• Architecture comprises the most important, pervasive, top-level, strategic inventions,
decisions, and their associated rationales about the overall structure (i.e., essential
elements and their relationships) and associated characteristics and behavior.
• If documented, it may include information such as a detailed inventory of current
hardware, software and networking capabilities; a description of long-range plans and
priorities for future purchases, and a plan for upgrading and/or replacing dated
equipment and software
• The composite of the design architectures for products and their life-cycle processes.
DATA BASE DAIAGRAM

FARMING ASSISTANT SYSTEM

Admin Farmer User

Login Register Register

Add Crop Details Login Login

Add Fertilizer View Crop Details View Product


Details
View Fertilizer / Buy Product
Add Weather
Weather Details
Report
Make Payment
Post Product
View User details
View Booking
View Farmer
Details
3.2 DATABASE DESIGN

Database Design is a collection of processes that facilitate the designing, development,


implementation and maintenance of enterprise data management systems

It helps produce database systems

1. That meet the requirements of the users


2. Have high performance.

The main objectives of database designing are to produce logical and physical designs
models of the proposed database system.

The logical model concentrates on the data requirements and the data to be stored
independent of physical considerations. It does not concern itself with how the data will be
stored or where it will be stored physically.

The physical data design model involves translating the logical design of the database onto
physical media using hardware resources and software systems such as database management
systems (DBMS).

Table Name: Admin


Field Type Null Default
name varchar(50) Yes NULL
psw varchar(50) Yes NULL

Table Name: Buy


Field Type Null Default
uid varchar(50) Yes NULL
pid varchar(50) Yes NULL
fid varchar(50) Yes NULL
amnt varchar(50) Yes NULL
status varchar(50) Yes NULL
Table Name: Farmers
Field Type Null Default
id int(50) Yes NULL
fname varchar(50) Yes NULL
age varchar(50) Yes NULL
gender varchar(50) Yes NULL
email varchar(50) Yes NULL
phone varchar(50) Yes NULL
address varchar(100) Yes NULL
psw varchar(50) Yes NULL

Table Name: Fertilizer


Field Type Null Default
CropsName varchar(50) Yes NULL
DiseaseName varchar(50) Yes NULL
FertilizerName varchar(50) Yes NULL

Table Name: Product


Field Type Null Default
id int(50) Yes NULL
fid varchar(50) Yes NULL
pname varchar(50) Yes NULL
qty varchar(50) Yes NULL
price varchar(50) Yes NULL
date varchar(50) Yes NULL
desc varchar(50) Yes NULL

Table Name: Register


Field Type Null Default

id int(50) Yes NULL

name varchar(50) Yes NULL

gender varchar(50) Yes NULL


age varchar(50) Yes NULL

email varchar(50) Yes NULL

phone varchar(50) Yes NULL

location varchar(50) Yes NULL

address varchar(200) Yes NULL

uname varchar(50) Yes NULL

psw varchar(50) Yes NULL

Table Name: Crops


Field Type Null Default
SeasonName varchar(50) Yes NULL
CropsName varchar(50) Yes NULL
SoilType varchar(50) Yes NULL
ProcessTime varchar(50) Yes NULL
3.2.1 ER DIAGRAM

Phone Email

Address
Gender

Crop Name Password


Age

FertilizerNa Farmer
name Id
DiseaseN me
ame
Farmer Registration

Update
Fertilizer

Admin

Password

Crops
Name

Process
SeasonN
Time
ame

SoilType CropsNa
me
CHAPTER 4
PROJECT DESCRIPTION
4.PROJECT DESCRIPTION
MODULES
Admin
• Login
• Add Crop Details
• Add Fertilizer Details
• Add Weather Report
• View User details
• View Farmer Details

Farmer

• Register
• Login
• View Crop Details
• View Fertilizer Details
• View Weather Report
• Post Product
• View Booking
• Result

User

• Register
• Login
• View Product
• Buy Product
• Make Payment

MODULE DESCRIPTION

Admin
• Login
Admin can contain unique user name and password to enter into the system. Admin is
responsibility to maintain all information in database up to date.
• Add Crop Details
In this module used to add crop details according to different seasons. The crop
details are separated by seasonal crops.
• Add Fertilizer Details
In this module used to add fertilizer for crops. Admin add information about new
fertilizer for disease.
• Add Weather Report
In this module, the admin can add the weather details like weather name, crop name,
duration, etc.
• View User details
In this module, the admin can view the user details like user name, gender, age,
phone, email, etc.
• View Farmer Details
In this module used to view farmer details. Registered farmer details only viewed by
admin. Farmer details contains farmer name, farmer age, farmer location details,
farmer contact details etc,

Farmer

• Register
There is farmer registration form available where new users can create their account
by providing required information to the system. The registration form details are like
user name, father name, age, gender, mobile number, and address. These details are
stored in the database.
• Login
In this module, Farmer can login in the system using username and password.
Registered farmer only can login in this system.
• View Crop Details
In this module, the user can view the crop details according to different seasons. The
crop details are separated by seasonal crops.
• View Fertilizer Details
In this module the farmer can view the fertilizer details for crops. Admin add
information about new fertilizer for disease.
• View Weather Report
In this module the farmer can view the weather details added by admin.
• Post Product
This module contains the information about the product. The new product may be
fruits, oils, paddy etc.
• View Booking
In this module the farmer can view the user booking details. The booking details
contain user details and product details etc.
• Result
In this module the farmer can view the overall report details like booking details,
product details etc

User

• Register
There is user registration form available where new users can create their account by
providing required information to the system. The registration form details are like
user name, father name, age, gender, mobile number, and address. These details are
stored in the database.
• Login
In this module, User can login in the system using username and password.
Registered user only can login in this system.
• View Product
This module specially provides the latest product which is posted by farmers. User
can also buy a product from this site.
• Buy Product
In this module, the user can buy the product by specifying the desired product details
like product name, product id, quantity, price, etc.
• Make Payment
In this module used to make payment for activate channels. Payment details such as
user name, , amount, bank name ,date and time details etc,.
CHAPTER 5

SYSTEM DEVELOPMENT
5.SYSTEM DEVELOPMENT

5.1 LANGUAGE / TOOL

Front End

PHP: Hypertext Preprocessor (the name is a recursive acronym) is a widely used,


general-purpose scripting language that was originally designed for web development to
produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source
document and interpreted by a web server with a PHP processor module, which generates the
web page document. As a general-purpose programming language, PHP code is processed by
an interpreter application in command-line mode performing desired operating system
operations and producing program output on its standard output channel. It may also function
as a graphical application. PHP is available as a processor for most modern web servers and
as standalone interpreter on most operating systems and computing platforms. PHP was
originally created by Rasmus Lerdorf in 1995 and has been in continuous development ever
since. 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, which is incompatible with the GNU General Public License
(GPL) because restrictions exist regarding the use of the term PHP.

Hypertext refers to files linked together using hyperlinks, such as HTML (Hypertext
Markup Language) files. Preprocessing is executing instructions that modify the output.
Below is a demonstration of the difference between HTML and PHP files.

Accessing an HTML Page

Browsers Requests File

Server Sends Requested File

Your Computer Server


Fig 2 3.1 Accessing an HTML page

1. Your browser sends a request to that web page's server (computer) for the file (HTML
or image) you wish to view.
2. The web server (computer) sends the file requested back to your computer.
3. Your browser displays the file appropriately.
4. If you request a PHP file (ends with ".php"), the server handles it differently.
Accessing a PHP Page
The image part w ith relationship ID rId10 w as not found in the file.

Accessing a PHP Page

1. Your browser sends a request to that web page's server for the PHP file you wish to
view.
2. The web server calls PHP to interpret and perform the operations called for in the
PHP script.
3. The web server sends the output of the PHP program back to your computer.
4. Your browser displays the output appropriately.
Benefit of PHP

Because the server does processing, the output of PHP files changes when its input changes.
For example, most of the pages on the Horticulture site have only two (2) PHP commands:

1. Include the header file that defines the links on the left, the banner, and the quick links
at the top.
2. Include the footer file that displays the mission statement and Horticulture contact
information.
Because including the files is performed every time the PHP file is accessed, when the
header/footer files change, the new content will be immediately updated. In other words, if
you add a new link, every page that includes the header will immediately display the new
link.

Security

About 30% of all vulnerabilities listed on the National Vulnerability Database are
linked to PHP. These vulnerabilities are caused mostly by not following best practice
programming rules: technical security flaws of the language itself or of its core libraries are
not frequent (23 in 2008, about 1% of the total). Recognizing that programmers make
mistakes, some languages include taint checking to detect automatically the lack of input
validation which induces many issues. Such a feature is being developed for PHP, but its
inclusion in a release has been rejected several times in the past. There are advanced
protection patches such as Suhosin and Hardening-Patch, especially designed for Web
hosting environments.

PHPIDS adds security to any PHP application to defend against intrusions. PHPIDS
detects attacks based on cross-site scripting (XSS), SQL injection, header injection, directory
traversal, remote file execution, remote file inclusion, and denial-of-service (DoS)

Syntax

The PHP interpreter only executes PHP code within its delimiters. Anything outside
its delimiters is not processed by PHP (although non-PHP text is still subject to control
structures described in PHP code). The most common delimiters are <?php to open and ?> to
close PHP sections. <script language="php"> and </script> delimiters are also available, as
are the shortened forms <?or<?= (which is used to echo back a string or variable) and ?> as
well as ASP-style short forms <% or <%= and %>. While short delimiters are used, they
make script files less portable as support for them can be disabled in the PHP configuration,
and so they are discouraged. The purpose of all these delimiters is to separate PHP code from
non-PHP code, including HTML.
The first form of delimiters, <?php and ?>, in XHTML and other XML documents, creates
correctly formed XML 'processing instructions'. This means that the resulting mixture of PHP
code and other markup in the server-side file is itself well-formed XML.

Variables are prefixed with a dollar symbol, and a type does not need to be specified
in advance. Unlike function and class names, variable names are case sensitive. Both double-
quoted ("") and here-doc strings provide the ability to interpolate a variable's value into the
string. PHP treats newlines as whitespace in the manner of a free-form language (except
when inside string quotes), and statements are terminated by a semicolon. PHP has three
types of comment syntax: /* */ marks block and inline comments; // as well as # are used for
one-line comments. The echo statement is one of several facilities PHP provides to output
text, e.g., to a Web browser.

In terms of keywords and language syntax, PHP is similar to most high level languages that
follow the C style syntax. if conditions, for and while loops, and function returns are similar
in syntax to languages such as C, C++, Java and Perl.

Data types

PHP stores whole numbers in a platform-dependent range, either a 64-bit or 32-bit


signed integer equivalent to the C-language long type. Unsigned integers are converted to
signed values in certain situations; this behavior is different from other programming
languages. Integer variables can be assigned using decimal (positive and negative), octal, and
hexadecimal notations. Floating point numbers are also stored in a platform-specific range.
They can be specified using floating point notation, or two forms of scientific notation. PHP
has a native Boolean type that is similar to the native Boolean types in Java and C++. Using
the Boolean type conversion rules, non-zero values are interpreted as true and zero as false,
as in Perl and C++. The null data type represents a variable that has no value. The only value
in the null data type is NULL. Variables of the "resource" type represent references to
resources from external sources. These are typically created by functions from a particular
extension, and can only be processed by functions from the same extension; examples include
file, image, and database resources. Arrays can contain elements of any type that PHP can
handle, including resources, objects, and even other arrays. Order is preserved in lists of
values and in hashes with both keys and values, and the two can be intermingled. PHP also
supports strings, which can be used with single quotes, double quotes, nowdoc or heredoc
syntax.

Functions
PHP has hundreds of base functions and thousands more via extensions. These functions are
well documented on the PHP site; however, the built-in library has a wide variety of naming
conventions and inconsistencies. PHP currently has no functions for thread programming,
although it does support multi-process programming on POSIX systems.

MySQL

MySQL is the world's most used open source relational database management system
(RDBMS) as of 2008 that run as a server providing multi-user access to a number of
databases. The MySQL development project has made its source code available under the
terms of the GNU General Public License, as well as under a variety of proprietary
agreements. MySQL was owned and sponsored by a single for-profit firm, the Swedish
company MySQL AB, now owned by Oracle Corporation.

MySQL is a popular choice of database for use in web applications, and is a central
component of the widely used LAMP open source web application software stack—LAMP is
an acronym for "Linux, Apache, MySQL, Perl/PHP/Python."Free-software-open source
projects that require a full-featured database management system often use MySQL.

For commercial use, several paid editions are available, and offer additional functionality.
Applications which use MySQL databases include: TYPO3, Joomla, Word Press, phpBB,
MyBB, Drupal and other software built on the LAMP software stack. MySQL is also used in
many high-profile, large-scale World Wide Web products, including Wikipedia,
Google(though not for searches), ImagebookTwitter, Flickr, Nokia.com, and YouTube.

Interimages
MySQL is primarily an RDBMS and ships with no GUI tools to administer MySQL
databases or manage data contained within the databases. Users may use the included
command line tools, or use MySQL "front-ends", desktop software and web applications that
create and manage MySQL databases, build database structures, back up data, inspect status,
and work with data records. The official set of MySQL front-end tools, MySQL Workbench
is actively developed by Oracle, and is freely available for use.

Graphical

The official MySQL Workbench is a free integrated environment developed by MySQL AB,
that enables users to graphically administer MySQL databases and visually design database
structures. MySQL Workbench replaces the previous package of software, MySQL GUI
Tools. Similar to other third-party packages, but still considered the authoritative MySQL
frontend, MySQL Workbench lets users manage database design & modeling, SQL
development (replacing MySQL Query Browser) and Database administration (replacing
MySQL Administrator).

MySQL Workbench is available in two editions, the regular free and open sourceCommunity
Edition which may be downloaded from the MySQL website, and the proprietary Standard
Edition which extends and improves the feature set of the Community Edition.

Command line

MySQL ships with some command line tools. Third-parties have also developed tools to
manage a MySQL server, some listed below.

• Maatkit - a cross-platform toolkit for MySQL, PostgreSQL and Memcached,


developed in Perl Maatkit can be used to prove replication is working correctly, fix corrupted
data, automate repetitive tasks, and speed up servers. Maatkit is included with several
GNU/Linux distributions such as CentOS and Debian and packages are available for
Programming

MySQL works on many different system platforms, including AIX, BSDi, FreeBSD, HP-UX,
eComStation, i5/OS, IRIX, Linux, Mac OS X, Microsoft Windows, NetBSD, Novell
NetWare, OpenBSD, OpenSolaris, OS/2 Warp, QNX, Solaris, Symbian, SunOS, SCO
OpenServer, SCO UnixWare, Sanos and Tru64. A port of MySQL to OpenVMS also
exists.[32]

MySQL is written in C and C++. Its SQL parser is written in yacc, and a home-brewed
lexical analyzer. Many programming languages with language-specific APIs include libraries
for accessing MySQL databases. These include MySQL Connector/Net for integration with
Microsoft's Visual Studio (languages such as C# and VB are most commonly used) and the
JDBC driver for Java. In addition, an ODBCinterimage called MyODBC allows additional
programming languages that support the ODBC interimage to communicate with a
MySQLdatabase, such as ASP or ColdFusion. The HTSQL - URL-based query method also
ships with a MySQL adapter, allowing direct interaction between a MySQL database and any
web client via structured URLs.

Features

As of April 2009, MySQL offered MySQL 5.1 in two different variants: the open source
MySQL Community Server and the commercial Enterprise Server. MySQL 5.5 is offered
under the same licenses. They have a common code base and include the following features:

• A broad subset of ANSI SQL 99, as well as extensions


• Cross-platform support
• Stored procedures
• Triggers
• Cursors
• Updatable Views
• Information schema
• Strict mode (ensures MySQL does not truncate or otherwise modify data to conform
to an underlying data type, when an incompatible value is inserted into that type)
• X/Open XAdistributed transaction processing (DTP) support; two phase commit as
part of this, using Oracle's InnoDB engine
• Independent storage engines (MyISAM for read speed, InnoDB for transactions and
referential integrity, MySQL Archive for storing historical data in little space)
• Transactions with the InnoDB, and Cluster storage engines; savepoints with InnoDB
• SSL support
• Query caching
• Sub-SELECTs (i.e. nested SELECTs)
• Replication support (i.e. Master-Master Replication & Master-Slave Replication) with
one master per slave, many slaves per master, no automatic support for multiple masters per
slave.
• Full-text indexing and searching using MyISAM engine
• Embedded database library
• Unicode support (however prior to 5.5.3 UTF-8 and UCS-2 encoded strings are
limited to the BMP, in 5.5.3 and later use utf8mb4 for full Unicode support)
• ACID compliance when using transaction capable storage engines (InnoDB and
Cluster)
• Partitioned tables with pruning of partitions in optimizer
• Shared-nothing clustering through MySQL Cluster
• Hot backup (via mysqlhotcopy) under certain conditions

Multiple storage engines, allowing one to choose the one that is most effective for each table
in the application (in MySQL 5.0, storage engines must be compiled in; in MySQL 5.1,
storage engines can be dynamically loaded at run time): Native storage engines (MyISAM,
Falcon, Merge, Memory (heap), Federated, Archive, CSV, Blackhole, Cluster, EXAMPLE,
Maria, and InnoDB, which was made the default as of 5.5). Partner-developed storage
engines (solidDB, NitroEDB, ScaleDB, TokuDB, Infobright (formerly Brighthouse),
Kickfire, XtraDB, IBM DB2). InnoDB used to be a partner-developed storage engine, but
with recent acquisitions, Oracle now owns both MySQL core and InnoDB.
CHAPTER 6
SYSTEM TESTING AND VALIDATIONS
6.SYSTEM TESTING AND VALIDATIONS

6.1 UNIT TESTING

The first test in the development process is the unit test. The source code is normally divided
into modules, which in turn are divided into smaller units called units. These units have
specific behavior. The test done on these units of code is called unit test. Unit test depends
upon the language on which the project is developed. Unit tests ensure that each unique path
of the project performs accurately to the documented specifications and contains clearly
defined inputs and expected results.

6.2 INTEGRATION TESTING


In integration testing modules are combined and tested as a group. Modules are typically
code modules, individual applications, source and destination applications on a network, etc.
Integration Testing follows unit testing and precedes system testing. Testing after the product
is code complete. Betas are often widely distributed or even distributed to the public at large
in hopes that they will buy the final product when it is released.

6.3 ACCEPTANCE TESTING

This is a type of testing done by users, customers, or other authorised entities to determine
application/software needs and business processes. Acceptance testing is the most important
phase of testing as this decides whether the client approves the application/software or not.
It may involve functionality, usability, performance, and U.I of the application

6.4 VALIDATION

Validation is the process of evaluating the final product to check whether the software
meets the customer expectations and requirements. It is a dynamic mechanism of validating
and testing the actual product. Validation is determining if the system complies with the
requirements and performs functions for which it is intended and meets the organization’s
goals and user needs. Validation helps in building the right product as per the customer’s
requirement and helps in satisfying their needs.
CHAPTER 7
CONCLUSION & FUTURE ENHGANCEMENT
7.CONCLUSION & FUTURE ENHGANCEMENT

CONCLUSION
This project has with success enforced the location “Farming Assistant System”. With the
assistance of varied links and tools, to get been ready to offer a website that is live and
running on the net. Finally this project has a tendency to hope that this can go an extended
manner in popularizing the organization. It has three main modules such as admin module,
user module and farmer module. The admin can maintain all the details such as add the
product list and maintain the user details. The user views all the details and buys a product.
The project was implemented by PHP as a front end and MYSQL Server as a back end.

FUTURE ENHANCEMENT

In future we can develop this project in mobile application with extra features like adviser to
farmer query system. And also tracking the farmer location by user.
CHAPTER 8
BIBLIOGRAPHY
8.BIBLIOGRAPHY

BOOK REFERENCE

• Gerken, Till, and Tobias Ratschiller. Web Application Development with PHP. New
Riders Publishing, 2000.
• Greenspan, Jay, and Brad Bulger. MySQL/PHP database applications. John Wiley &
Sons, Inc., 2001.
• Gutmans, Andi, Stig Bakken, and Derick Rethans. PHP 5 Power Programming (Bruce
Perens'Open Source Series). Prentice Hall PTR, 2004.
• Krasnick, Cheryl L. [Book Review] Dark Paradise: Opiate Addiction in America
Before 1940. Canadian Society for the History of Medicine, 1984.
• Scollo, Chris, and Sascha Shumann. Professional PHP programming. Wrox Press
Ltd., 1999.
• Ware, Brent. Open source development with LAMP: using Linux, Apache, MySQL
and PHP. Addison-Wesley Longman Publishing Co., Inc., 2002.
• Yank, Kevin. Build your own database driven website using PHP & MySQL.
SitePoint Pty Ltd, 2004.

WEBSITE REFERENCE

• www.freetechbooks.com
• www.slideshare.com
• www.w3schools.com
• www.programmersheaven.com
• www.phpreferencebook.com
APPENDIX A
DATA DICTIONARY
APPENDIX A – DATA DICTIONARY

FIELD NAME TYPE DESCRIPTION SAMPLE


VALUES
name varchar(50) Specify The Name Ravi
psw varchar(50) Specify The Password ****
id int(50) Specify The Id 1
fname varchar(50) Specify The Farmer Name Vinoth
age varchar(50) Specify The Age 21
gender varchar(50) Specify The Gender Male
email varchar(50) Specify The Email [email protected]
phone varchar(50) Specify The Phone Number 9876543210
address varchar(100) Specify The Address Trichy
uid varchar(50) Specify The User Id 10
pid varchar(50) Specify The Product Id 21
fid varchar(50) Specify The Fertilizer Id 11
amnt varchar(50) Specify The Amount 1500
status varchar(50) Specify The Status Delivered
Crop Name varchar(50) Specify The Crop Name Wheat
Disease Name varchar(50) Specify The Disease Name Nebraska
pname varchar(50) Specify The Product Name Nitrate
qty varchar(50) Specify The Quantity 1kg
price varchar(50) Specify The Price 1500
date varchar(50) Specify The Date 2020-1-06
desc varchar(50) Specify The Description Testing
Season Name varchar(50) Specify The Season Name Summer season
Soil Type varchar(50) Specify The Soil Type Black Soil
Process Time varchar(50) Specify The Process Time 6months
SAMPLE CODING

Index.php

<html>

<title>Farming Assistance</title>

<style>p{

color:#99ccff;

text-align: center;

text-transform: uppercase;

font-size:15px;}

ul {

padding:50px;

list-style-type: none;

overflow: hidden;

background:url("images/1.jpg");

background-repeat: no-repeat;

background-size: 1420px 200px;

position: -webkit-sticky; /* Safari */

position: sticky;

top: 0;

border-radius:10px;

}li {

float: left;
}li a {

display: block;

color: #000000;

text-align: center;

padding: 14px 16px;

text-decoration: none;

}li a:hover {

background-color: #ccffff;

}.active {

background-color: #4CAF50;

}#footer {

border: 2px solid #b3d9ff;

padding: 45px;

background: #001a00;

background-repeat: no-repeat;

background-size: 1420px 100px;

border-radius:10px;

text-align:center;

text-decoration:blink;

font-family: Arial;

font-size:15px;

#bg1 { padding:150px;
background:url("images/2.jpeg");

background-repeat: no-repeat;

background-size: 1420px 300px;

border-radius:5px;

border-radius:10px;

text-align:left;

font-size:35px;

color:#cce6ff;

}</style>

</head>

<ul> <li><a href="#">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</a></li>

<li><a class="active"href="index.php"><strong>Home Page</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="admin.php"><strong>Admin login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="user.php"><strong>User Login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="farmer.php"><strong>Farmer Login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="about.php"><strong>About Us</a></li>

</ul>

<br />

<br />
<div id="bg1">Farming Assitant System</div>

<div>&nbsp;</div>

<br>

<br>

<br>

<br>

<br>

<br>

<br>

<br>

<div id="footer"><p>copyrights &designedby@Farming Assistance</p></div>

Admin.php

<?php

include("dbconnect.php");

extract($_POST);

session_start();

if(isset($_POST['btn']))

$qry=mysql_query("select * from admin where name='$uname'&&psw='$password'");

$num=mysql_num_rows($qry);

if($num==1)

?>
<script>alert('welcome to admin home page');

</script>

<?php

header("location:adminhome.php");

else

echo "<script>alert('User Name Password Wrong.....')</script>";

?>

<html>

<title>Farming Assistance</title>

<style>

color:#99ccff;

text-align: center;

text-transform: uppercase;

font-size:15px;}

ul {

padding:50px;

list-style-type: none;
overflow: hidden;

background:url("images/1.jpg");

background-repeat: no-repeat;

background-size: 1420px 200px;

position: -webkit-sticky; /* Safari */

position: sticky;

top: 0;

border-radius:10px;

li {

float: left;

li a {

display: block;

color: #000000;

text-align: center;

padding: 14px 16px;

text-decoration: none;

li a:hover {

background-color: #ccffff;

.active {
background-color: #4CAF50;

#footer {

border: 2px solid #b3d9ff;

padding: 45px;

background: #001a00;

background-repeat: no-repeat;

background-size: 1420px 100px;

border-radius:10px;

text-align:center;

text-decoration:blink;

font-family: Arial;

font-size:15px;

#bg1 {

padding:90px;

background:url("images/2.jpeg");

background-repeat: no-repeat;

background-size: 1420px 300px;

border-radius:5px;

border-radius:10px;

text-align:left;

font-size:35px;
color:#fffff;

</style>

</head>

<ul> <li><a href="#">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</a></li>

<li><a class="active"href="index.php"><strong>Home Page</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="admin.php"><strong>Admin login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="user.php"><strong>User Login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="farmer.php"><strong>Farmer Login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="about.php"><strong>About Us</a></li>

</ul>

<br />

<br />

<div id="bg1">Farming Assitant System</div>

<br />

<br />

<form id="form1" name="form1" method="post" action="">

<table width="46%" border="0" align="center">

<tr>
<td colspan="2"rowspan="1"><div align="center" class="style1"><strong><font
size="+1">Admin Login</font></div></td>

</tr>

<tr>

<td width="48%">&nbsp;</td>

<td width="52%">&nbsp;</td>

</tr></tr>

<tr>

<td height="31"align="center"><span class="style2"><strong>User Name


</strong></span></td>

<td><label>

<input name="uname" type="text" id="uname" />

</label></td>

</tr>

<tr>

<td height="44" align="center"><span


class="style2"><strong>Password</strong></span></td>

<td><label>

<input name="password" type="password" id="password" />

</label></td>

</tr>

<tr>

<td>&nbsp;</td>

<td rowspan="2"><label>
<input name="btn" type="submit" id="btn" value="Login" />

<input type="reset" name="Submit2" value="Cancel" />

</label></td>

</tr>

</table>

</form>

<div>&nbsp;</div>

<br>

<br>

<div id="footer"><p>copyrights &designedby@Farming Assistance</p></div>

User.php

<?php

include("dbconnect.php");

extract($_POST);

session_start();

if(isset($_POST['btn']))

$qry=mysql_query("select * from register where uname='$uname'&&psw='$password'");

$num=mysql_num_rows($qry);

if($num==1)

$qry1=mysql_query("select * from register where uname='$uname'&&psw='$password'");

$row=mysql_fetch_assoc($qry1);
$_SESSION['uid']=$row['id'];

echo "<script>alert('Welcome To user Login')</script>";

header("location:userhome.php");

else

echo "<script>alert('User Name Password Wrong.....')</script>";

?>

<html>

<title>Farming Assistance</title>

<style>

{ color:#99ccff;

text-align: center;

text-transform: uppercase;

font-size:15px;

ul { padding:50px;

list-style-type: none;

overflow: hidden;

background:url("images/1.jpg");
background-repeat: no-repeat;

background-size: 1420px 200px;

position:webkit-sticky;

position: sticky;

top: 0;

border-radius:10px;

li {

float: left;

li a {

display: block;

color: #000000;

text-align: center;

padding: 14px 16px;

text-decoration: none;

li a:hover {

background-color: #ccffff;

.active {

background-color: #4CAF50;

}
#footer {

border: 2px solid #b3d9ff;

padding: 45px;

background: #001a00;

background-repeat: no-repeat;

background-size: 1420px 100px;

border-radius:10px;

text-align:center;

text-decoration:blink;

font-family: Arial;

font-size:15px;

#bg1 {

padding:90px;

background:url("images/2.jpeg");

background-repeat: no-repeat;

background-size: 1420px 300px;

border-radius:5px;

border-radius:10px;

text-align:left;

font-size:35px;

color:#fffff;

}
</style>

</head>

<ul> <li><a href="#">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</a></li>

<li><a class="active"href="index.php"><strong>Home Page</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="admin.php"><strong>Admin login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="user.php"><strong>User Login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="farmer.php"><strong>Farmer Login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="about.php"><strong>About Us</a></li>

</ul>

<br />

<br />

<div id="bg1">Farming Assitant System</div>

<br />

<br />

<form id="form1" name="form1" method="post" action="">

<table width="46%" border="0" align="center">

<tr>

<td colspan="2"rowspan="1"><div align="center" class="style1"><strong><font


size="+1">User Login</font></div></td>
</tr> <tr>

<td width="48%">&nbsp;</td>

<td width="52%">&nbsp;</td>

</tr></tr>

<tr>

<td height="31"align="center"><span class="style2"><strong>User Name


</strong></span></td>

<td><label>

<input name="uname" type="text" id="uname" />

</label></td>

</tr>

<tr>

<td height="44" align="center"><span


class="style2"><strong>Password</strong></span></td>

<td><label>

<input name="password" type="password" id="password" />

</label></td>

</tr>

<tr>

<td>&nbsp;</td>

<td rowspan="2"><label>

<input name="btn" type="submit" id="btn" value="Login" />

<input type="reset" name="Submit2" value="Cancel" />


</label></td>

</tr>

<tr>

<tdalign="center"><a href="register.php">Registration</a></td>

</tr>

</table>

</form>

<div>&nbsp;</div>

<br>

<br>

<div id="footer"><p>copyrights &designedby@Farming Assistance</p></div>

Farmer.php

<?php

include("dbconnect.php");

extract($_POST);

session_start();

if(isset($_POST['btn']))

$qry=mysql_query("select * from farmers where fname='$uname'&&psw='$password'");

$num=mysql_num_rows($qry);

if($num==1)

echo "<script>alert('Welcome To Farmers Login')</script>";


$qry1=mysql_query("select * from farmers where fname='$uname'&&psw='$password'");

$row=mysql_fetch_assoc($qry1);

$_SESSION['fid']=$row['id'];

header("location:fhome.php");

else

echo "<script>alert('User Name Password Wrong.....')</script>";

?>

<html>

<title>Farming Assistance</title>

<style>

color:#99ccff;

text-align: center;

text-transform: uppercase;

font-size:15px;}ul {

padding:50px;

list-style-type: none;

overflow: hidden;
background:url("images/1.jpg");

background-repeat: no-repeat;

background-size: 1420px 200px;

position: -webkit-sticky; /* Safari */

position: sticky;

top: 0;

border-radius:10px;

li {

float: left;

li a {

display: block;

color: #000000;

text-align: center;

padding: 14px 16px;

text-decoration: none;

li a:hover {

background-color: #ccffff;

.active {

background-color: #4CAF50;
}

#footer {

border: 2px solid #b3d9ff;

padding: 45px;

background: #001a00;

background-repeat: no-repeat;

background-size: 1420px 100px;

border-radius:10px;

text-align:center;

text-decoration:blink;

font-family: Arial;

font-size:15px;

#bg1 {

padding:90px;

background:url("images/2.jpeg");

background-repeat: no-repeat;

background-size: 1420px 300px;

border-radius:5px;

border-radius:10px;

text-align:left;

font-size:35px;

color:#fffff;
}

</style>

</head>

<ul>

<li><a href="#">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</a></li>

<li><a class="active"href="index.php"><strong>Home Page</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="admin.php"><strong>Admin login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="user.php"><strong>User Login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="farmer.php"><strong>Farmer Login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="about.php"><strong>About Us</a></li>

</ul>

<br />

<br />

<div id="bg1">Farming Assitant System</div>

<br />

<br />

<form id="form1" name="form1" method="post" action="">

<table width="46%" border="0" align="center">

<tr>
<td colspan="2"rowspan="1"><div align="center" class="style1"><strong><font
size="+1">Farmer Login</font></div></td>

</tr>

<tr>

<td width="48%">&nbsp;</td>

<td width="52%">&nbsp;</td>

</tr></tr>

<tr>

<td height="31"align="center"><span class="style2"><strong>Farmer Name


</strong></span></td>

<td><label>

<input name="uname" type="text" id="uname" />

</label></td>

</tr>

<tr>

<td height="44" align="center"><span


class="style2"><strong>Password</strong></span></td>

<td><label>

<input name="password" type="password" id="password" />

</label></td>

</tr>

<tr>

<td>&nbsp;</td>

<td rowspan="2"><label>
<input name="btn" type="submit" id="btn" value="Login" />

<input type="reset" name="Submit2" value="Cancel" />

</label></td>

</tr>

<tr>

<tdalign="center"><a href="fregister.php">Farmer Register</a></td>

</tr>

</table>

</form>

<div>&nbsp;</div>

<br>

<br>

<div id="footer"><p>copyrights &designedby@Farming Assistance</p></div>

Register.php

<?php

include("dbconnect.php");

extract($_POST);

session_start();

if(isset($_POST['btn']))

$qry=mysql_query("insert into
register(name,gender,age,email,phone,location,address,uname,psw)
values('$name','$gender','$age','$email','$phone','$loc','$address','$uname','$psw')");
if($qry)

echo "<script>alert('inserted sucessfully')</script>";

else

{ echo "failed";

}}?>

<html>

<title>Farming Assistance</title>

<style>

color:#99ccff;

text-align: center;

text-transform: uppercase;

font-size:15px;

ul {

padding:50px;

list-style-type: none;

overflow: hidden;

background:url("images/1.jpg");

background-repeat: no-repeat;
background-size: 1420px 200px;

position: -webkit-sticky; /* Safari */

position: sticky;

top: 0;

border-radius:10px;

li {

float: left;

li a {

display: block;

color: #000000;

text-align: center;

padding: 14px 16px;

text-decoration: none;

}li a:hover {

background-color: #ccffff;

.active {

background-color: #4CAF50;

}#footer {

border: 2px solid #b3d9ff;

padding: 45px;
background: #001a00;

background-repeat: no-repeat;

background-size: 1420px 100px;

border-radius:10px;

text-align:center;

text-decoration:blink;

font-family: Arial;

font-size:15px;

#bg1 { padding:150px;

background:url("images/2.jpeg");

background-repeat: no-repeat;

background-size: 1420px 300px;

border-radius:5px;

border-radius:10px;

text-align:left;

font-size:35px;

color:#cce6ff;

</style>

</head>

<ul> <li><a href="#">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</a></li>

<li><a class="active"href="index.php"><strong>Home Page</a></li>


<li><a href="#">&nbsp;</a></li>

<li><a href="admin.php"><strong>Admin login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="user.php"><strong>User Login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="farmer.php"><strong>Farmer Login</a></li>

<li><a href="#">&nbsp;</a></li>

<li><a href="about.php"><strong>About Us</a></li>

</ul>

<br />

<br />

<div id="bg1">Farming Assitant System</div>

<form id="f1" name="f1" method="post" action="#"onSubmit="return vali()">

<table width="100%" border="0" align="center">

<tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td width="10%">&nbsp;</td>

<td width="20%">&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>
<td width="11%">&nbsp;</td>

<td width="25%">&nbsp;</td>

<br /><td colspan="2" align="center"><div class="style5"><h3>New User


Registation</h></div></td>

<td width="23%">&nbsp;</td>

<td width="11%">&nbsp;</td>

</tr>

<tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td height="31">&nbsp;</td>

<td>&nbsp;</td>

<td><span class="style6">Name</span></td>

<td><label>

<input name="name" type="text" id="name"onChange="return name ()"/>

</label></td>

<td>&nbsp;</td>
<td>&nbsp;</td>

</tr>

<tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td height="30">&nbsp;</td>

<td>&nbsp;</td>

<td><span class="style6">Gender</span></td>

<td><input name="gender" type="radio" value="male" />

Male

<input name="gender" type="radio" value="female" />

Female</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td height="35">&nbsp;</td>
<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td height="34">&nbsp;</td>

<td>&nbsp;</td>

<td><span class="style6">Age</span></td>

<td><label>

<input name="age" type="text" id="age"onChange="return age ()" />

</label></td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>
</tr>

<tr>

<td height="32">&nbsp;</td>

<td>&nbsp;</td>

<td><span class="style6">Email Id </span></td>

<td><input name="email" type="text" id="email"onChange="return email()" /></td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td><span class="style6">Phone Number </span></td>

<td><input name="phone" type="text" id="phone"onChange="return phone()" /></td>

<td>&nbsp;</td>
<td>&nbsp;</td>

</tr>

<tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td><span class="style6">Location</span></td>

<td><input type="text" name="loc" id="loc"></td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>
<td>&nbsp;</td>

<td>&

<tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td><span class="style6">Address</span></td>

<td><textarea name="address" id="address"></textarea></td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td height="31">&nbsp;</td>

<td>&nbsp;</td>

<td><span class="style6">User Name</span></td>

<td><input name="uname" type="text" id="uname" /></td>


<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td><span class="style6">Passwrod</span></td>

<td><input name="psw" type="password" id="psw" /></td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr> <tr>

<td height="35">&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>
<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td><input name="btn" type="submit" id="btn" value="Submit" />

<input type="reset" name="Submit2" value="Reset" /></td>

</tr>

</table>

</form><br>

<br>

<div id="footer"><p>copyrights &designedby@Farming Assistance</p></div>


APPENDIX B
SAMPLE SCREENSHOT & OUTPUT

You might also like