You are on page 1of 31

Abstract-

Farming is the Prime Occupation in India in spite of this, today the people involved in
farming belongs to the lower class and is in deep poverty. The Advanced techniques and the
Automated machines which are leading the world to new heights, is been lagging when it is
concerned to Farming, either the lack of awareness of the advanced facilities or the
unavailability leads to the poverty in Farming. Even after all the hard work and the
production done by the farmers, in todays market the farmers are cheated by the Agents,
leading to the poverty. Agro-marketing would make all the things automatic which make
easier serving as a best solution to all the problems. E-farming will serve as a way for the
farmers to sell their products across the country just with some basic knowledge
about how to use the website. The site will guide the farmers in all the aspects, the current
market rate of different products, the total sale and the earned profit for the sold
products, access to the new farming techniques through e-learning and centralized approach
to view different governments agriculture schemes including the compensation schemes for
farming. Getting availed to the required information related to the markets and different
products can be made possible through the SMS facility provided by the system.

1.INTRODUCTION
E-farming is the web application that will help the farmers to perform the agro-
marketing leading to achieve success and increase in their standard of living. The Marketing
facility would allow the farmers to have a view of the bills created and the related
information in their accounts. An Authorized-agent would serve as a way for the farmers to
sell their products in the market. The Centralized market committee will have control on
the Agents through business activities review.
Website will also provide market-wise, commodity-wise report to the farmer in
interactive way. In rural area, the SMS facility would give the required market information
where internet cannot be availed.
Government will put forward the new schemes for the farmers. Compensation will be
provided for the farmers in case of any loss to the production due to some natural calamities.
Unique interface will be provided for applying and viewing the schemes.Farmers and the
Agents will be provided with a Unique ID for logging into their accounts leading towards
secure access.
2.OBJECTIVES
The main objective of this project is building a website which will help farmers from Indian
villages to sell their products to different city markets. It is a computerized approach for
better and clear marketing number, names of product he farms, his personal details, etc. This
information can be used for various purposes of marketing. Once availed with the username
and a password for the website the users can perform different operations like marketing,
viewing the account information, checking the fund transfer after a sale.

Farmers will get unique interface where they can avail everything right from learning to
the market information they can perform marketing, get the current rates of market, get in
touch with SMS through the cell phones, can gather the knowledge of different schemes and
apply as well as check status of application.

3.EXISTING SYSTEM

There is no computerized system for the farmer to sell their product. Currently, the farmer
goes to nearest market handover his product to a particular agent, agent ask the farmer to visit
the market after a specific time to collect the cash earned out of the sold product. Agent
sells the product to another agent or a dealer at the cost of that market. Every Agent tries to
cuts his commission out of that. There is no way for farmer to know about the deal
and the exact amount at which their product was sold. There is no transparency. No facility is
present for the farmers to know the product rates at different markets where they can sell their
products for achieving high profits. Many times, farmers are not even aware of the
schemes and compensation provided by government. In spite of all the opportunities banging
the doors the farmers are not able to benefit out of those. Current system does not provide the
way of e-learning for farmer that will provide the knowledge of new techniques in farming.
So he doesnt get the maximum profit through the current system.

4.E-FARMING
E-farming will provide unique ID to each user that can be used to perform agro-
marketing and can apply for scheme.
4.1Design and Architecture
We describe the Algorithm, which is used to explain how the system is going to work,
i.e. the process logic behind it, the flowchart, which represents the pictorial representation of
the process logic and finally the Data
Flow Diagram of the E-Farming.
4.1.1Algorithm
There is no need of login for normal user who has the curiosity to know about the
market information and different schemes. Farmers who want to perform marketing and
apply for schemes must have the login username and password. Along with farmers, the
agent which will perform the selling of farmers product must be authorized through the
market committee for their license of marketing and after authorization, they will be given
authorizedagent ID and password. During authorization, Farmer need to provide his bank
account
4.1.2Flow Chart
The diagram (fig.2) has shown below gives some basic description regarding the flow of the
system. It will give an overview of the operations performed and where
it goes after the operation has been performed. It shows the different conditions like (if
else) if one condition is not true then where the flow will return and from where will it start
again or where will the flow terminate after some operation has been performed.

4.2Applications
Provides user friendly site for the marketing purpose.
Has real time application in krushi utpann bajar
samitte where actual marketing takes place.
One touch access to descent and accurate market
information.
Reduces the chances of corruption, inconvenience
and uneasiness in viewing the market.
Information on mobile by just sending specified keyword through SMS.
Easy and hassle free access as well as apply to the schemes and compensation provided by
government.
Agriculture education through E-learning.
4.3 Risks in implementation
Lack of equality to access the internet in rural
areas.
Reliability of information on the web.
Technophobia of new users.
5.METHODOLOGY
Following are the basic modules involve in project:
Account Generation
It includes the creation of account, in which basic information of user, type of user,
whether he is farmer, agent or Gov. Officer is submitted. Through this module, user
gets the Unique ID which serves as the identity of user.
Marketing
It includes Pricing, Billing and the Fund Transfer. Pricing will show the farmer at
what price his commodity has been sold. Billing will create the bill after getting request from
farmer for bill creation. Created bill will be displayed on the page. Bill will consist of unit
price rate, total bill amount, commission of agent, vehicle fare, other expenditure, etc.
Farmer can download or print the bill for future reference. Using fund transfer, Agent can
transfer the invoice amount to farmers account and farmer can check whether amount has
been transferred or not. One should be log in for using this facility.
Market Information
Farmer can see the market information of nearby market. This will consist
of selling rates of different product, todays turnover, product-wise details like quantity,
grading, selling cost, etc. It will give commodity-wise, market-wise daily report,
commodity wise price during last week, community transaction below MSP(maximum
sale price), date wise prices for specified community. Farmer can also search for specific
product in particular duration of specific market.
SMS
Serves as an Alternate to get the market information to the farmers through mobile. User
can get message related to specific commodity by sending the keyword to the servicenumber.
Compensation
It lists the packages provided by government to the victim farmers of various natural
calamities like heavy rain, drought etc. They can apply for the same and can check the status
of their application. Farmer can apply only after log in.
Government Schemes
It lists all government schemes related to particular product and area and can apply in the
same way as for compensation.
E-Learning
Includes Documentation, Videos and Audios working as a helpdesk. It will educate
farmers about new trends and techniques for farming as well as notice for different
workshops that will be conducted. User can view as well as download the content.

6.IMPLEMENTATION
The system will be having only one User-name and Password section on the front page,
as per the user-name and password the system will know whether user is
Farmer/Agent/Administrator/Gov.
6.1 Scenario of the project
Farmer:
Farmers can create new account, log-in to their existing accounts which will give them the
authority to use the services provided by the system.
Authenticated farmers can sell their product, claim the compensation from government and
can view his fund.
If user select as farmer then there is option to select whether he wants to take lesson or if he
is already familiar with online buying and selling then he can directly go to sell his products.
The Farmer can check their account on fund transfer.
Authorized agent:
Agentsells the product to other agent or
wholesaler.
Agent transfers the fund to farmers account as
per the product sale

Government Officer:
Central authorities can log-in to their accounts as created by administrator.
Authorities can access all the details of the market in all the different tehsil, district.
They can view turnover of the market daily,
weekly or monthly.
Validate farmers eligibility for compensation and schemes. Provide the valid reason why
the application for schemes if has not been granted.
Invoke proper activity in response to valid complaints about agents.
Administrator:
Create and monitor accounts of users.
Maintain the website.
Provide the username and authorities as per user.
Update the website.

6.2 Software Implementation


Proposed application is web application build using jsp, servlet and db2 database.
Software implementation is as shown in below diagram
Software Interface:
Client on Internet:
Web Browser, Operating System (any)
Client on Intranet:
Web Browser, Operating System (any)
Web Server:
WASCE, Operating System (any)
Data Base Server:
DB2, Operating System (any)

Communication Interface:
Client (customer) on Internet will be using HTTP/HTTPS protocol.
Client (system user) on Internet will be using HTTP/HTTPS protocol.

6.3 Hardware Implementation


Weighting machine will be attached to the agent machine that will automatically upload
the weight of the product in farmers invoice. Weighing instrument is attached to the
microcontroller which will monitor the activities of machine and provide the relevant data to
the agents computer.
SYSTEM ANALYSIS

FEASIBILITY STUDY

During system analysis the feasibility study of the proposed system is to be carried out.
This is to ensure that the proposed system is not a burden to the user. For feasibility analysis,
some understanding of the major details for the system is essential. Our system allows the
participants to get their results in flexible manner.

TECHNICAL FEASIBILITY

The study is carried out to check the technical details of the system. In technical
feasibility the following issues are taken into consideration that, if the required technology is
available or not and if the resources available or not. This system mainly used for reduces the
manual work and time. The main drawbacks of the existing system are data retrieval and data
loss. The proposed system resolves all drawbacks of existing system. It is easy to maintain
the deails and easy to store and retrieve the data from the database.

OPERATIONAL FEASIBILITY

The purpose of operational feasibility is to determine whether the new system will be
used if it developed and implemented or will there be resistance from the users that will take
the possible application benefits. Also it includes the level of acceptance of the system by the
user. The parameters given to the application is less so that any normal user can access the
application easily. As the next of this type of system is very high, there will be a great level
of acceptance by the user, as time saving is more important.

ECONOMIC FEASIBILITY

Once the technical feasibility is established, it is important to consider the


monetaryfactors also. It might happen when the developing system may be technically
possible but it hasless benefit. For evaluating this, economic feasibility of the proposed
system is carried out. In this system administrator can view the details of the student in any
way.

SOFTWARE REQUIREMENT SPECIFICATION

FUNCTIONAL REQUIREMENTS

Functional requirements define the fundamental actions that the system must perform.
The functional requirements for the system are, the administrator should enter the event
details, student coordinator detail, staff coordinator details, schedule details, and results for
each event, then the participants can able to register for their events and can view the event
results. So the partcipiants can view the details in easy manner.
HARDWARE REQUIREMENTS

Processor : Intel Pentium 2.1 GHz

Memory : 2GB RAM

Hard Disk : 320 GB

SOFTWARE REQUIREMENTS

Operating system : Windows 7 Ultimate

Front-End : HTML,PHP,JavaScript

Back-End : My-SQL

Web Server : Apache Server

Tool : WAMP for windows

Front End

PHP:

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source
general-purpose scripting language that is especially suited for web development and can be
embedded into HTML. PHP is an HTML-embedded scripting language. Much of its syntax is
borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The
goal of the language is to allow web developers to write dynamically generated pages
quickly.

Using PHP:

PHP (Hypertext Pre-Processor) is a server-side web programming language that is


widely used for web development.
However, here are many languages which are used for web development or web
programming. But among all of them PHP is the most popular web scripting
language. So, let us find out why PHP is widely used for web development
PHP language has its roots in C and C++. PHP syntax is most similar to C and C++
language syntax. So, programmers find it easy to learn and manipulate.
Working of PHP:

Server-side scripting. You need three things to make this work: the PHP parser
(CGI or server module), a web server and a web browser. You need to run the web
server, with a connected PHP installation. You can access the PHP program output
with a web browser, viewing the PHP page through the server.

HTML

HTML code ensures the proper formatting of text and images so that your
Internet browser may display them as they are intended to look. Without HTML, a
browser would not know how to display text as elements or load images or other
elements. HTML also provides a basic structure of the page, upon which Cascading
Style Sheets are overlaid to change its appearance.

<!DOCType HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"


"https://www.w3.org/TR/html4/loose.dtd">
<html lang="en"><head>
<title>Example page</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
<h1>This is a heading</h1>
<p>This is an example of a basic HTML page.</p>
</body></html>

HTML refers to the HyperText Markup Language.There are many advantages and
disadvantages of HTML, including compatibility and difficulty of use. HTML is the
basic language to learn for web technologies. HTML is that it is easy to code. HTML
also allows the use of templates, which makes designing a webpage easy.

Back End

Mysql:
MySQL is the most popular Open Source Relational SQL Database Management
System. MySQL is one of the best RDBMS being used for developing various web-
based software applications. MySQL is developed, marketed and supported by
MySQL AB, which is a Swedish company. This tutorial will give you a quick start to
MySQL and make you comfortable with MySQL programming.

SQL stands for Structured Query Language. It's a standard language for
accessing and manipulating databases. MySQL is a database management system, like SQL
Server, Oracle, Informix, Postgres, etc. MySQL is a RDMS (Relational Database
Management System).

SQL (Structured Query Language) is a standardized programming language used


for managing relational databases and performing various operations on the data in
them. SQL is a database programming language for querying and editing information
stored in a certain database .

Web server:

Web servers often come as part of a larger package of Internet- and intranet-related
programs for serving email, downloading requests for File Transfer Protocol (FTP)
files, and building and publishing Web pages.

Considerations in choosing a Web server include how well it works with the
operating system and other servers, its ability to handle server-side programming,
security characteristics, and the particular publishing, search engine and site building
tools that come with it.

Web servers include Apache (the most widely-installed Web server), Microsoft's
Internet Information Server (IIS) and nginx (pronounced engine X) from NGNIX.
Other Web servers include Novell's NetWare server, Google Web Server (GWS) and
IBM's family of Domino servers.
TECHNICAL REQUIREMENTS

PERFORMANCE

Performance requirements define acceptable response times for system functionality.


The load time for user interface screens shall take no longer than five seconds. The login
information shall be verified within five seconds. Queries shall return results within five
seconds.

SCALABILITY

In this system administrator can add and update the details in very easy manner. This
system provides the report to the administrator within five seconds. It is a web application
project. It can use in educational institution. Therefore it is very scalable for maintaining the
computer application department details.

SECURITY

The administrator will be able to login department website. The system verifies the
username and password and then allows administrator to access the data if only the username
and password is correct otherwise it will display the error message. It provides more security
to administrator for accessing the data.

MAINTAINABILITY

This system is being developed using PHP that support all type of data in different
format. Therefore you will be able to maintain all data in easy manner. Administrator can
able to view the reports based on student, faculty, placement, circular, achievement and
association activities etc. Maintenance of the system is very flexible and cost effect
effectively.

AVAILABILITY

This system is available any time if there is internet access. Any number of users can
access the system at a time without any interrupt. The system has the capacity to maintain
each department details.

Coding
<!DOCTYPE html>
<?php
session_start();
$userId=$_SESSION['userId'];
echo $userId;
if($userId=="")
{
header('Location:'.'index.html');
}
?>
<html lang="en">

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport" content="width=device-
width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<title>E-Farm Info-
Dashboard</title>

<!-- Bootstrap Core CSS -->


<link
href="css/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->


<link href="css/sb-
admin.css" rel="stylesheet">
<link
href="css/modal.css" rel="stylesheet">
<!-- Morris Charts
CSS -->
<link
href="css/plugins/morris.css" rel="stylesheet">

<!-- Custom
Fonts -->
<link
href="font-awesome/css/font-awesome.min.css" rel="stylesheet"
type="text/css">

<!--
HTML5 Shim and Respond.js IE8 support of HTML5 elements and media
queries -->
<!--
WARNING: Respond.js doesn't work if you view the page via file:// --
>
<!--[if
lt IE 9]>
<script
src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></scr
ipt>
<script
src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></
script>
<![endif]-->

</head>

<body>

<div
id="wrapper">

<!-- Navigation -->

<nav class="navbar navbar-inverse navbar-fixed-top"


role="navigation">

<!-- Brand and toggle get grouped for better mobile display --
>

<div class="navbar-header">

<button type="button" class="navbar-toggle" data-


toggle="collapse" data-target=".navbar-ex1-collapse">

<span class="sr-only">Toggle navigation</span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

</button>

<h3 style="color:White;padding-left:30px">E-Farm Info -

<?php

if($_SESSION['IsCustomer']=='0') //
seller

echo 'Seller';

else
if($_SESSION['IsCustomer']=='1') // seller
{

echo 'Customer';

else

echo 'Admin';

?>

</h3>

</div>

<!-- Top Menu Items -->

<ul class="nav navbar-right top-nav">

<li class="dropdown">

<a href="#" class="dropdown-toggle"


data-toggle="dropdown"><i class="fa fa-user"></i><?php echo '
'.$_SESSION['UNAME'] ?><b class="caret"></b></a>

<ul class="dropdown-menu">

<li>

<a href="logout.php" ><i


class="fa fa-fw fa-power-off"></i> Log Out</a>

</li>

</ul>

</li>

</ul>

<!-- Sidebar Menu Items - These collapse to


the responsive navigation menu on small screens -->

<div class="collapse navbar-collapse navbar-


ex1-collapse">
<ul class="nav navbar-nav side-nav">

<?php

if($_SESSION['IsCustomer']=='0') //
seller

echo'<li class="active">

<a href="home.php"><i
class="fa fa-fw fa-dashboard"></i>Dashboard</a>

</li>';

echo'<li>

<a href="selling.php"><i
class="fa fa-fw fa-comments"></i>Selling</a>

</li>';

echo'<li>

<a href="post_question.php"><i
class="fa fa-fw fa-bar-chart-o"></i>Post Question</a>

</li>';

echo'<li>

<a href="myquestion.php"><i
class="fa fa-fw fa-edit"></i>My Question</a>

</li>';

echo'<li>

<a href="myanswer.php"><i
class="fa fa-fw fa-comments"></i></i>My Answer</a>

</li>';

echo'<li>

<a href="newsview.php"><i
class="fa fa-fw fa-comments"></i>News View</a>

</li>';
}

else
if($_SESSION['IsCustomer']=='1')

echo'<li class="active">

<a href="home.php"><i
class="fa fa-fw fa-dashboard"></i>Dashboard</a>

</li>';

echo'<li>

<a href="productview.php"><i
class="fa fa-fw fa-comments"></i>Product View</a>

</li>';

echo'<li>

<a href="post_question.php"><i
class="fa fa-fw fa-bar-chart-o"></i>Post Question</a>

</li>';

echo'<li>

<a href="myquestion.php"><i
class="fa fa-fw fa-edit"></i>My Question</a>

</li>';

echo'<li>

<a href="myanswer.php"><i
class="fa fa-fw fa-comments"></i></i>My Answer</a>

</li>';

echo'<li>

<a href="newsview.php"><i
class="fa fa-fw fa-comments"></i>News View</a>

</li>';
}

else if($_SESSION['IsCustomer']=='2')
//admin

echo'<li class="active">

<a href="home.php"><i
class="fa fa-fw fa-dashboard"></i>Dashboard</a>

</li>';

echo'<li>

<a href="selling.php"><i
class="fa fa-fw fa-comments"></i>Selling</a>

</li>';

echo'<li>

<a href="productview.php"><i
class="fa fa-fw fa-comments"></i>Product View</a>

</li>';

echo'<li>

<a href="news.php"><i
class="fa fa-fw fa-comments"></i>News</a>

</li>';

echo'<li>

<a href="newsview.php"><i
class="fa fa-fw fa-comments"></i>News View</a>

</li>';

echo'<li>

<a
href="question_approval.php"><i class="fa fa-fw fa-
comments"></i>Questions Approval</a>

</li>';

//echo'<li>

//<a
href="answers_approval.php"><i class="fa fa-fw fa-
comments"></i>Answers Approval</a>

//</li>';

?>

</ul>

</div>

<!-- /.navbar-collapse -->

</nav>

<div id="page-wrapper">

<div class="container-fluid">

<!-- Page Heading -->

<div class="row">

<div class="col-lg-12">

<h1 class="page-header">

Dashboard
<small>Statistics Overview</small>

</h1>

</div>

</div>

<!-- /.row -->

<!-- /.row -->

<div class="row">
</div>

<!--------->

<div class="row">

<div class="col-lg-12">

<h1 class="page-header">

</h1>

<div class="row" id="dynamic_button">

</div>

</div>

<!-- Model Dialog-->

<!-- The Modal -->

<div id="myModal" class="modal" >

</div>

<!--- Close Model -->

</div>

<!--------->

</div>

<!-- /.container-fluid -->

</div>

<!-- /#page-wrapper -->


</div>

<!-- /#wrapper -->

<!-- jQuery -->

<script src="js/jquery.js"></script>

<!-- Bootstrap Core JavaScript -->

<script src="js/bootstrap.min.js"></script>

<!-- Morris Charts JavaScript -->

<script>

var modal = document.getElementById('myModal');

$(document).ready(function(){

//alert('im ready..');

getmyquestion(); // get Device Types from DB

totalusers();

totalquestion();

totalunapprovedanswer();

totalunapprovedquestion();

});

function showModal(questionId) {

getmyanswer(questionId);

}
function getmyanswer(questionId) {

$.ajax({

type: "POST",

url: "home_db.php",

data:'value='+'GetAnswer'+'&QuestionId='+questionId,

success: function(data){

//alert(data);

//$("#myModal").html("<p>karthick</p><br><p>admire </p>");

$("#myModal").html(data);

modal.style.display = "block";

$('#txtPostAnswer').val("");

});

function getmyquestion() {

$.ajax({

type: "POST",

url: "home_db.php",

data:'value='+'GetAllQuestion',

success: function(data){

//alert(data);

$("#dynamic_button").html(data);

});

}
function totalusers() {

$.ajax({

type: "POST",

url: "home_db.php",

data:'value='+'TotalUsers',

success: function(data){

//alert(data);

$("#totaluser").html(data);

});

function totalquestion() {

$.ajax({

type: "POST",

url: "home_db.php",

data:'value='+'TotalQuestion',

success: function(data){

//alert(data);

$("#totalquestion").html(data);

});

function totalunapprovedanswer() {

$.ajax({

type: "POST",
url: "home_db.php",

data:'value='+'TotalUnApprovedAnswer',

success: function(data){

//alert(data);

$("#totalunanswer").html(data);

});

function totalunapprovedquestion() {

$.ajax({

type: "POST",

url: "home_db.php",

data:'value='+'TotalUnApprovedQuestion',

success: function(data){

//alert(data);

$("#totalunquestion").html(data);

});

function postAnswer(questionid) {

//
alert(questionid+$("#txtPostAnswer").val());

$.ajax({

type: "POST",

url: "home_db.php",
data:'value='+'SetAnswer'+'&QuestionId='+questionid+'&Answer='
+$("#txtPostAnswer").val(),

success: function(data){

alert("Thank You.");

$('#txtPostAnswer').val("");

});

// When the user clicks anywhere outside of


the modal, close it

window.onclick = function(event) {

if (event.target == modal) {

modal.style.display = "none";

</script>

</body>

</html>

-- phpMyAdmin SQL Dump


-- version 4.1.12
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Oct 06, 2017 at 10:13 PM
-- Server version: 5.6.16
-- PHP Version: 5.5.11

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;


/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `agriculture`
--

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

--
-- Table structure for table `answers`
--

CREATE TABLE IF NOT EXISTS `answers` (


`Id` int(8) NOT NULL AUTO_INCREMENT,
`UserId` int(8) NOT NULL,
`QuestionId` int(8) NOT NULL,
`Answer` varchar(50) NOT NULL,
`IsApproval` bit(1) NOT NULL,
`CreatedDate` date NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--
-- Dumping data for table `answers`
--

INSERT INTO `answers` (`Id`, `UserId`, `QuestionId`, `Answer`,


`IsApproval`, `CreatedDate`) VALUES
(1, 5, 3, 'input device', b'1', '2016-08-04'),
(2, 4, 2, 'output device', b'1', '2016-08-04'),
(3, 4, 1, 'Operating system like Windows and Linux', b'1', '2016-08-
04'),
(4, 3, 4, 'i interested to buy', b'1', '2017-09-18');

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

--
-- Table structure for table `news`
--

CREATE TABLE IF NOT EXISTS `news` (


`Id` bigint(20) NOT NULL AUTO_INCREMENT,
`Title` varchar(100) NOT NULL,
`Description` varchar(500) NOT NULL,
`Image` varchar(500) NOT NULL,
`DateTime` datetime NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `news`
--

INSERT INTO `news` (`Id`, `Title`, `Description`, `Image`,


`DateTime`) VALUES
(1, 'a', 'ss', 'undefined', '2017-09-18 00:00:00'),
(2, 'aaaa', 'ssss', 'nnnn', '2017-09-18 00:00:00'),
(3, '', '', 'C:fakepath_g.jpg', '2017-09-19 00:00:00'),
(4, 'Test', 'TEst', '', '2017-09-19 00:00:00'),
(5, 'TEst', 'TEsrt', '1.jpg', '2017-10-06 00:00:00');

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

--
-- Table structure for table `products`
--

CREATE TABLE IF NOT EXISTS `products` (


`Id` bigint(8) NOT NULL AUTO_INCREMENT,
`ProductCode` varchar(10) NOT NULL,
`Name` varchar(255) NOT NULL,
`ShortName` varchar(10) NOT NULL,
`StockQty` bigint(8) NOT NULL,
`Price` float(255,0) NOT NULL,
`CreatedDate` datetime NOT NULL,
`Description` varchar(500) NOT NULL,
`Status` bit(1) NOT NULL,
`SellerId` bigint(20) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;

--
-- Dumping data for table `products`
--

INSERT INTO `products` (`Id`, `ProductCode`, `Name`, `ShortName`,


`StockQty`, `Price`, `CreatedDate`, `Description`, `Status`,
`SellerId`) VALUES
(2, 'p002', 'chocholate', 'chc', 3, 33, '2016-08-01 00:00:00', '',
b'0', 3),
(3, 'p003', 'icecream', 'ice', 2, 20, '2017-09-18 00:00:00', '',
b'1', 2),
(4, 'p004', 'milkshake', 'milk', 3, 30, '2016-07-31 13:19:51', '',
b'0', 2),
(14, '102', '55', 'aa', 0, 0, '2017-09-18 00:00:00', 'a', b'1', 2),
(16, '103', 'carrot', 'carrot', 6, 5, '2017-10-06 00:00:00', 'ee',
b'1', 2),
(17, '102', 'coconut', 'carrot', 6, 50, '2017-10-06 00:00:00',
'sss', b'1', 2);

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

--
-- Table structure for table `questions`
--

CREATE TABLE IF NOT EXISTS `questions` (


`Id` int(8) NOT NULL AUTO_INCREMENT,
`UserId` int(8) NOT NULL,
`Question` varchar(50) NOT NULL,
`IsApproval` bit(1) NOT NULL,
`CreatedDate` date NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `questions`
--

INSERT INTO `questions` (`Id`, `UserId`, `Question`, `IsApproval`,


`CreatedDate`) VALUES
(1, 5, 'what is os?', b'1', '2016-08-04'),
(2, 5, 'What is Monitor?', b'1', '2016-08-04'),
(3, 4, 'keyboard?', b'1', '2016-08-04'),
(4, 2, 'I need to sell Coconut.', b'1', '2017-09-18');

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

--
-- Table structure for table `userdetails`
--

CREATE TABLE IF NOT EXISTS `userdetails` (


`Id` int(8) NOT NULL AUTO_INCREMENT,
`FirstName` varchar(50) NOT NULL,
`LastName` varchar(50) NOT NULL,
`Password` varchar(50) NOT NULL,
`EmailId` varchar(50) NOT NULL,
`Mobile` varchar(13) NOT NULL,
`IsCustomer` int(8) NOT NULL,
`Aadhar` varchar(10) NOT NULL,
`DOB` date NOT NULL,
`Address` varchar(20) NOT NULL,
`City` varchar(20) NOT NULL,
`States` varchar(20) NOT NULL,
`PinCode` int(8) NOT NULL,
`CreatedDate` date NOT NULL,
PRIMARY KEY (`Id`),
UNIQUE KEY `Unique` (`EmailId`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;

--
-- Dumping data for table `userdetails`
--

INSERT INTO `userdetails` (`Id`, `FirstName`, `LastName`,


`Password`, `EmailId`, `Mobile`, `IsCustomer`, `Aadhar`, `DOB`,
`Address`, `City`, `States`, `PinCode`, `CreatedDate`) VALUES
(1, 'admin', 'admin', 'admin', 'admin', '123435456', 2,
'2312312312', '1986-03-09', '9, Nethaji street 2,', 'Erode', 'Tamil
Nadu', 638009, '2017-07-29'),
(2, 'seller', 'seller', '123456', 'seller@gmail.com', '9845665262',
0, 'AD545564', '2003-01-28', 'Erode', 'Erode', 'TN', 638009, '2017-
09-18'),
(3, 'customer', 'customer', '123456', 'customer@gmail.com',
'98564621323', 1, 'AD786465', '2009-12-01', 'Erode', 'Erode', 'TN',
638009, '2017-09-18');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;


/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Screen Shot

Fig. 2.1 Login Page


Fig. 2.2 Dashboard My Question

Fig. 2.3 Dashboard Your Question


Fig. 2.4 Database

CONCLUSION
This project will be helpful for farmers to know more about market information; will act
as unique interface of schemes and compensation. Through this they will be always in touch
of new technique and trends of farming. But some extends, new user may feel some
kind of stress about its use. Overall this system is faster, secure and comfortable.