Professional Documents
Culture Documents
Visvesvaraya Technological University BELGAUM-590014: "Online Agriculture Products Marketing"
Visvesvaraya Technological University BELGAUM-590014: "Online Agriculture Products Marketing"
Visvesvaraya Technological University BELGAUM-590014: "Online Agriculture Products Marketing"
BELGAUM-590014
Submitted by:
SURYA K S (1DT16CS107)
CERTIFICATE
This is to certify that the Mini-Project on Database Management System (DBMS) entitled “ONLINE
AGRICULTURE PRODUCTS MARKETING” has been successfully carried out by SURYA K S
(1DT16CS107) a bonafide students of Dayananda sagar academy of technology and management
in partial fulfillment of the requirements for the award of degree in Bachelor of Engineering in
Computer Science and Engineering of Visvesvaraya Technological University, Belgaum during
academic year 2018-19. It is certified that all corrections/suggestions indicated for Internal Assessment
have been incorporated in the report deposited in the departmental library. The mini project report has
been approved as it satisfies the academic requirements in respect of project work for the said degree.
GUIDES:
We wish to express a sincere thanks to our respected principal Dr. B. R. Lakshmikantha for
all their support.
We express our deepest gratitude and special thanks to Dr.C.Nandini, Vice Principal &
H.O.D, Dept. Of Computer Science Engineering, for all her guidance and encouragement.
We sincerely acknowledge the guidance and constant encouragement of our mini- project
guides, Mr.Raghu M T (Assistant Professor) and Mr.Manjunath D R (Assistant Professor)
SURYA K S (1DT16CS107)
i
ABSTRACT
Online Agriculture Products Marketing is a market place for farmers where they can
sell/buy their vegetables, fruits etc using this e-Trading Platform. Farmers can also
transparently buy inputs and implements using online shopping ecommerce platform.
E-commerce is clearly beginning to have a major impact in the agricultural sector. The
way people go about purchasing agricultural products is of great concern. Most of the time
customers have to travel far distances to get agricultural products and getting the right quality
is not ensured. Besides, farming is the prime occupation in India. Indian people involved in
farming are mostly cheated by the agents in today’s market which leads to poverty
The website builds a platform for farmers and agents to ensure greater profitability
through direct farmer to customer communication The website will act as a unique and secure
way to perform agro-marketing. 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. This
project allows viewing various products available enables users to purchase desire products
instantly by online payment. This website would be developed using web service as the
communication infrastructure between the buyer and farmers and also products selling.
Our project aims to help farmers as well as customers for buying and selling
agricultural products across the country using a computerized approach.
ii
TABLE OF CONTENTS
1 INTRODUCTION 1
1.1 Background 1
1.3 Motivation 1
1.4 Objective 2
2 REQUIREMENTS 3
3 DESIGN 4
iii
3.3.3 User Login 10
4 IMPLEMENTATION 13
4.2.4 MyCart 15
5 SOURCE CODE 17
6 CONCLUSION AND 21
FUTURE WORK
6.1 Advantages 21
7 BIBILOGRAPHY 22
8 PERSONAL DETAILS 23
LIST OF FIGURES
v
DBMS Mini Project – Online Agriculture Product Marketing
CHAPTER 1
INTRODUCTION
1.1 Background
Considering facilities given by Indian Government to farmers that provides quality
agricultural inputs supply, efficient irrigation management and production of high yielding
seeds of different crops. It also provides the best use of surface water, irrigation efficiency
by reducing logging and increasing irrigated areas and farmers to supply quality fertilizer.
Now a day, the farmers have to go to the nearest market to hand over his product to a particular
agent where agent sells the product to another agent or a dealer. After a specific time the agent
gives the collected cash out of the sold products to the respected farmer but every Agent tries to
cuts his commission out of the earned amount. The whole process is not transparent as there is
no way for farmer to know about the deal and the exact amount at which their product was
sold. 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. Our project aims to help farmers to sell
their products in a transparent way.
1.3 Motivation
Manual System: The system is not effiecient as the third person involve and farmers will have
no idea at what price their products was sold.This system is more prone to errors and
sometimes the approaches to various problems are unstructured.
Technical System: With the invention of latest technology, we should update our systems
which are very fast, accurate, user-friendly and reliable.
1.4 Objective
The main objective of this project is to build a platform for farmers to sell their product
and track the sale. This platform is flexible which can improve the customer-farmer
relationship in an effective manner. Farmer will get unique interface where they can avail
everything right from learning to the market information. This website will act as unique and
secure way to perform agro-marketing with the following advantages:
1. Faster System
2. Accuracy
3. Reliability
4. Cost Effective
5. User Friendly
6. Immediate access to the data and statistics
The project provides a very simple application which provides better price for the
agricultural products grown by farmer. This application saves the data of farmers and
products in the database. Allows users to search for products and buy them. This will
provide the better price for farmer products than the manual market system.
CHAPTER 2
REQUIREMENTS
The requirements can be broken down into 2 major categories namely hardware and
software requirements. The former specifies the minimal hardware facilities expected in a
system in which the project has to be run. The latter specifies the essential software needed to
build and run the project.
The Hardware requirements are very minimal and the program can be run on most of the
machines.
• Database : My SQL
CHAPTER 3
DESIGN
3.1 Database Design
All the Relations are designed in such a way that it has no repeating groups. Hence all
tables are in 1st Normal Form.
A relation is said to be in second normal form if it is already in first normal form and it
has no partial dependency. All the tables in the database are designed in such a way that
there is no partial dependency. Hence all tables are in 2nd Normal Form.
A relation is said to be in third normal form if it is already in 1st and 2nd Normal Form
and has no transitive dependency. All the tables in the database are designed in such a
way that there is no transitive dependency. Hence all tables are in 3rd Normal Norm.
The User Interface of the Online Agriculture Products Marketing is single moduled
where farmers can upload their products and buyers can buy and rate them.
CHAPTER 4
IMPLEMENTATION
4.1 User Registration Module
Input : Name
: Username
: Mobile number
: Email
: Password
: Confirm Password
: Address
: Username
Input : Password
Input : Image
: Price
:Enter Price
Input : Name
: City
: Mobile No
: PIN Code
: Address
Stored Procedure:
The Stored procedure implemented in the project for :
BEGIN
SELECT * from fproduct(fid,pid,product,pcat,price,pimage,picstatus,certified);
END
Trigger:
The trigger is implemented for :
END
CHAPTER 5
SOURCE CODE
Sample Source code to view the product:
Filename: review.php
<?php
session_start();
require 'db.php';
$pid = $_GET['pid'];
?>
<!DOCTYPE html>
<html>
<head>
<title>Krishi: Product</title>
<meta lang="eng">
<meta charset="UTF-8">
<title>Krishi</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
</head>
<body>
<?php
require 'menu.php';
$fid = $row['fid'];
$sql = "SELECT * FROM farmer WHERE fid = '$fid'";
?>
<div class="container">
<div class="row">
<div class="col-sm-4">
<img class="image fit" src="<?php echo $picDestination.'';?>" alt="" />
</div><!-- Image of farmer-->
<div class="12u$">
<center>
<div class="row uniform">
<div class="6u 12u$(large)">
<a href="myCart.php?flag=1&pid=<?= $pid; ?>" class="btn btn-primary" style="text-
decoration: none;"><span class="glyphicon glyphicon-shopping-cart"> AddToCart</a>
</div>
<div class="6u 12u$(large)">
<a href="buyNow.php?pid=<?= $pid; ?>" class="btn btn-primary"
style="text-decoration: none;">Buy Now</a>
</div>
</div>
</center>
</div
<div class="container">
<h1>Product Reviews</h1>
<div class="row">
<?php
$sql = "SELECT * FROM review WHERE pid='$pid'";
$result = mysqli_query($conn, $sql);
?>
<div class="col-0 col-sm-3"></div>
<div class="col-12 col-sm-6">
<?php
if($result) :
while($row1 = $result->fetch_array()) :
?>
<div class="con">
<div class="row">
<div class="col-sm-4">
<em style="color: black;"><?= $row1['comment']; ?></em>
</div>
<div class="col-sm-4">
<em style="color: black;"><?php echo "Rating : ".$row1['rating'].' out of 10';?></em>
</div>
</div>
<span class="time-right" style="color: black;"><?php echo "From: ".$row1['name']; ?></span>
<br /><br />
</div>
<?php endwhile; endif;?>
</div>
</div>
</div>
<?php
?>
<div class="container">
<p style="font: 20px Times new roman; align: left;">Rate this product</p>
<form method="POST" action="reviewInput.php?pid=<?= $pid; ?>">
<div class="row">
<div class="col-sm-7">
</div>
<div class="col-sm-5">
<br />
Rating: <input type="number" min="0" max="10" name="rating" value="0"/>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<br />
<input type="submit" />
</div>
</div>
</form>
</div>
</body>
</html>
CHAPTER 6
Through the developed project, anyone can visualize the effectiveness and efficiency in the real
management system. This program helps reduce the manual method and stress which is done
by a person and that is time consuming and lengthy process. With this application user’s
improvement in the generation has improved the quality and services of human operation just
as the case of this application for job services has reduce the mobility rate of human and
6.1 Advantages
The future plan of this project is to improved design; implementation and documentation in
such a way that anyone can use this project for better perform. I will develop the site more
dynamically.
BIBLIOGRAPHY
BOOK REFERENCES:
➢
Learn to Code HTML and CSS: Develop and Style Websites (Web Design
Courses) 1st, Kindle Edition by Shay Howe
➢
PHP 6 and MySQL 5 - Larry Ullman
WEBSITE REFERENCES:
HTML Learning:
https://www.codecademy.com/
https://dash.generalassemb.ly/
https://www.w3schools.com/
PHP Learning:
http://www.tutorialspoint.com/php/
https://killerphp.com
https://www.w3schools.com/
PERSONAL DETAILS
NAME: SURYA K S
USN: 1DT16CS107
SEMESTER AND SECTION: 5TH SEM, B SEC
COLLEGE: DAYANANDA SAGAR ACADEMY OF TECHNOLOGY AND MANAGEMENT
EMAIL ID: suryasrinivas7098@gmail.com