Vish
Vish
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
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
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.
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.
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
SYSTEM DESIGN
3.SYSTEM 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).
• 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
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).
Phone Email
Address
Gender
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
Front End
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.
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.
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
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.
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:
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
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.
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
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;
position: sticky;
top: 0;
border-radius:10px;
}li {
float: left;
}li a {
display: block;
color: #000000;
text-align: center;
text-decoration: none;
}li a:hover {
background-color: #ccffff;
}.active {
background-color: #4CAF50;
}#footer {
padding: 45px;
background: #001a00;
background-repeat: no-repeat;
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;
border-radius:5px;
border-radius:10px;
text-align:left;
font-size:35px;
color:#cce6ff;
}</style>
</head>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
</ul>
<br />
<br />
<div id="bg1">Farming Assitant System</div>
<div> </div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Admin.php
<?php
include("dbconnect.php");
extract($_POST);
session_start();
if(isset($_POST['btn']))
$num=mysql_num_rows($qry);
if($num==1)
?>
<script>alert('welcome to admin home page');
</script>
<?php
header("location:adminhome.php");
else
?>
<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;
position: sticky;
top: 0;
border-radius:10px;
li {
float: left;
li a {
display: block;
color: #000000;
text-align: center;
text-decoration: none;
li a:hover {
background-color: #ccffff;
.active {
background-color: #4CAF50;
#footer {
padding: 45px;
background: #001a00;
background-repeat: no-repeat;
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;
border-radius:5px;
border-radius:10px;
text-align:left;
font-size:35px;
color:#fffff;
</style>
</head>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
</ul>
<br />
<br />
<br />
<br />
<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%"> </td>
<td width="52%"> </td>
</tr></tr>
<tr>
<td><label>
</label></td>
</tr>
<tr>
<td><label>
</label></td>
</tr>
<tr>
<td> </td>
<td rowspan="2"><label>
<input name="btn" type="submit" id="btn" value="Login" />
</label></td>
</tr>
</table>
</form>
<div> </div>
<br>
<br>
User.php
<?php
include("dbconnect.php");
extract($_POST);
session_start();
if(isset($_POST['btn']))
$num=mysql_num_rows($qry);
if($num==1)
$row=mysql_fetch_assoc($qry1);
$_SESSION['uid']=$row['id'];
header("location:userhome.php");
else
?>
<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;
position:webkit-sticky;
position: sticky;
top: 0;
border-radius:10px;
li {
float: left;
li a {
display: block;
color: #000000;
text-align: center;
text-decoration: none;
li a:hover {
background-color: #ccffff;
.active {
background-color: #4CAF50;
}
#footer {
padding: 45px;
background: #001a00;
background-repeat: no-repeat;
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;
border-radius:5px;
border-radius:10px;
text-align:left;
font-size:35px;
color:#fffff;
}
</style>
</head>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
</ul>
<br />
<br />
<br />
<br />
<tr>
<td width="48%"> </td>
<td width="52%"> </td>
</tr></tr>
<tr>
<td><label>
</label></td>
</tr>
<tr>
<td><label>
</label></td>
</tr>
<tr>
<td> </td>
<td rowspan="2"><label>
</tr>
<tr>
<tdalign="center"><a href="register.php">Registration</a></td>
</tr>
</table>
</form>
<div> </div>
<br>
<br>
Farmer.php
<?php
include("dbconnect.php");
extract($_POST);
session_start();
if(isset($_POST['btn']))
$num=mysql_num_rows($qry);
if($num==1)
$row=mysql_fetch_assoc($qry1);
$_SESSION['fid']=$row['id'];
header("location:fhome.php");
else
?>
<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;
position: sticky;
top: 0;
border-radius:10px;
li {
float: left;
li a {
display: block;
color: #000000;
text-align: center;
text-decoration: none;
li a:hover {
background-color: #ccffff;
.active {
background-color: #4CAF50;
}
#footer {
padding: 45px;
background: #001a00;
background-repeat: no-repeat;
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;
border-radius:5px;
border-radius:10px;
text-align:left;
font-size:35px;
color:#fffff;
}
</style>
</head>
<ul>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
</ul>
<br />
<br />
<br />
<br />
<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%"> </td>
<td width="52%"> </td>
</tr></tr>
<tr>
<td><label>
</label></td>
</tr>
<tr>
<td><label>
</label></td>
</tr>
<tr>
<td> </td>
<td rowspan="2"><label>
<input name="btn" type="submit" id="btn" value="Login" />
</label></td>
</tr>
<tr>
</tr>
</table>
</form>
<div> </div>
<br>
<br>
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)
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: sticky;
top: 0;
border-radius:10px;
li {
float: left;
li a {
display: block;
color: #000000;
text-align: center;
text-decoration: none;
}li a:hover {
background-color: #ccffff;
.active {
background-color: #4CAF50;
}#footer {
padding: 45px;
background: #001a00;
background-repeat: no-repeat;
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;
border-radius:5px;
border-radius:10px;
text-align:left;
font-size:35px;
color:#cce6ff;
</style>
</head>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
<li><a href="#"> </a></li>
</ul>
<br />
<br />
<tr>
<td height="35"> </td>
<td> </td>
<td width="10%"> </td>
<td width="20%"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="11%"> </td>
<td width="25%"> </td>
<td width="23%"> </td>
<td width="11%"> </td>
</tr>
<tr>
<td height="35"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="31"> </td>
<td> </td>
<td><span class="style6">Name</span></td>
<td><label>
</label></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="35"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="30"> </td>
<td> </td>
<td><span class="style6">Gender</span></td>
Male
Female</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="35"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="34"> </td>
<td> </td>
<td><span class="style6">Age</span></td>
<td><label>
</label></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="35"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="32"> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="35"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="35"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="35"> </td>
<td> </td>
<td><span class="style6">Location</span></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="35"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td>&
<tr>
<td height="35"> </td>
<td> </td>
<td><span class="style6">Address</span></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="35"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="31"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="35"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><span class="style6">Passwrod</span></td>
<td> </td>
<td> </td>
</tr> <tr>
<td height="35"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</form><br>
<br>