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

AGRO-CULTURE

A Mini Project Report submitted to


JAWAHARLAL NEHRU TECHNOLOGICAL UNVERSITY ANANTAPUR.

in Partial Fulfillment of the Requirements for the Award of the degree of

BACHELOR OF
TECHNOLOGY IN
COMPUTER SCIENCE AND SYSTEMS ENGINEERING

Submitted by

NEHARSHIKA M (21121A1578)
MAMATHA S (21121A1596)
MADHAVI T (21121A15B0)

Under the Guidance of


Mr. P. Yogendra Prasad
Assistant Professor

Department of Computer Science and Systems Engineering


Sree Vidyanikethan Engineering College
(Autonomous)
Sree Sainath Nagar, Tirupati – 517 102
(2023-2024)
SREE VIDYANIKETHAN ENGINEERING COLLEGE
(AUTONOMOUS)
Sree Sainath Nagar, Tirupati

DEPARTMENT OF COMPUTER SCIENCE AND SYSTEMS ENGINEERING

CERTIFICATE

This is to certify that the mini project report entitled

“AGRO-CULTURE”

is the Bonafide work done by

NEHARSHIKA M (21121A1578)
MAMATHA S (21121A1596)
MADHAVI T (21121A15B0)

in the Department of Computer Science and Systems Engineering, and


submitted to Jawaharlal Nehru Technological University Anantapur,
Ananthapuramu in partial fulfillment of the requirements for the award of
the degree of Bachelor of Technology in Computer Science and Systems
Engineering during the academic year 2023-2024. This work has been
carried out under my supervision. The results of this mini project work
have not been submitted to any university for the award of any degree or
diploma.

Guide: Head:

Mr. P. Yogendra Prasad Dr. K. Ramani


Assistant Professor Professor & Head
Dept. of CSSE Dept. of CSSE

INTERNAL EXAMINER EXTERNALEXAMINER


DEPARTMENT OF COMPUTER SCIENCE AND
SYSTEMS ENGINEERING

VISION AND MISSION

VISION

• To become a Centre of excellence in ComputerSciences


and Systems Engineering through Teaching, Training
and Innovation to produce high quality engineering
professionals who can solve the growing complex
problems of the society and industry.

MISSION
• Established with cause of development of technical
education in advanced Computers Sciences and
Systems Engineering with applications to systems
there by serving the society and Nation.
• Transfer of knowledge through contemporary
curriculum and fostering faculty and student
development.
• Create keen interest for research and innovation among
students and faculty by understanding the needs of
the society and industry.
• Skill Development among diversity of students in
technical in technical domains and profession for
development of systems and processes to meet the
demands of the industry and research.
• Imbibing values and ethics in students for prospective
and promising engineering and develop a sense of
respect for all.
Program Educational Objectives (PEO’s)

After few years of graduation, the graduates of B.Tech (CSSE) will:


1. Demonstrate competencies in the Computer Science domain and Management
with an ability to comprehend, analyze, design and create software systems for
pursuing advanced studies in the areas of interest.

2. Evolve as entrepreneurs or be employed by acquiring required skill sets for


developing computer systems and solutions in multi-disciplinary areas.

3. Exhibit progression and professional skill development in Computer


programming and systems development with ethical attitude through life-long
learning.
Program Specific Outcomes (PSO’s)
On successful completion of the Program, the graduates of B. Tech (CSSE) program
will be able to:
PSO1 Employ Systems Approach to model the solutions for real life problems, design and
develop software systems by applying Modern Tools.
PSO2 Develop solutions using novel algorithms in High Performance Computing and Data
Science.
PSO3 Use emerging technologies for providing security and privacy to design, deploy and
manage network systems.
Program Outcomes (PO’s)
1. Apply the knowledge of mathematics, science, engineering fundamentals,
and an engineering specialization to the solution of complex engineering
problems (Engineering knowledge).

2. Identify, formulate, review research literature, and analyze complex


engineering problems reaching substantiated conclusions using first
principles of mathematics, natural sciences, and engineering sciences
(Problem analysis).

3. Design solutions for complex engineering problems and design system


components or processes that meet the specified needs with appropriate
consideration for the public health and safety, and the cultural, societal, and
environmental considerations (Design/development of solutions).

4. Use research-based knowledge and research methods including design of


experiments, analysis and interpretation of data, and synthesis of the
information to provide valid conclusions (Conduct investigations of
complex problems).

5. Create, select, and apply appropriate techniques, resources, and modern


engineering and IT tools including prediction and modeling to complex
engineering activities with an understanding of the limitations (Modern tool
usage)

6. Apply reasoning informed by the contextual knowledge to assess societal,


health, safety, legal and cultural issues and the consequent responsibilities
relevant to the professional engineering practice (The engineer and
society)

7. Understand the impact of the professional engineering solutions in


societal and environmental contexts, and demonstrate the knowledge
of,and need for sustainable development (Environment and
sustainability).
8. Apply ethical principles and commit to professional ethics and
responsibilities and norms of the engineering practice (Ethics).

9. Function effectively as an individual, and as a member or leader in diverse


teams, and in multidisciplinary settings (Individual and team work).

10. Communicate effectively on complex engineering activities with the


engineering community and with society at large, such as, being able to
comprehend and write effective reports and design documentation, make
effective presentations, and give and receive clear instructions
(Communication).

11. Demonstrate knowledge and understanding of the engineering and


management principles and apply these to one’s own work, as a member and
leader in a team, to manage projects and in multidisciplinary environments
(Project management and finance).

12. Recognize the need for, and have the preparation and ability to engage
in independent and life-long learning in the broadest context of technological
change (Life-long learning).
DECLARATION

We hereby declare that this project report titled “MAPS & BAGS – A Travel Guide” is

a genuine work carried out by us, in B.Tech (Computer Science and Systems Engineering)

degree course of Jawaharlal Nehru Technological University Anantapur and has not been

submitted to any other course or University for the award of any degree by us.

We declare that this written submission represents our ideas in our own words and where

others' ideas or words have been included, we have adequately cited and referenced the original

sources. We also declare that we have adhered to all principles of academic honesty and integrity

and have not misrepresented or fabricated or falsified any idea / data / fact / source in our

submission. We understand that any violation of the above will cause for disciplinary action by

the Institute and can also evoke penal action from the sources which have thus not been properly

cited or from whom proper permission has not been taken when needed.

Signature of the students

1.

2.

3.
ABSTRACT

The aim of the AMS project is to create an efficient web-based platform connecting farmers and buyers.
By automating agricultural processes, inspiring high-quality production, and promoting eco-friendly
practices, AMS seeks to enhance the overall agricultural supply chain. The primary focus is on providing
qualitative foods to buyers, implementing an automated system, and encouraging sustainable farming,
with the ultimate goal of improving the efficiency and connectivity within the agro-culture sector. The
Agriculture Management System (AMS) is a web-based application designed to streamline and enhance
the efficiency of the agricultural production process. With the aim of connecting farmers and buyers, this
system serves as a comprehensive platform for planning, monitoring, and analyzing farming activities
AMS empowers smart farmers to make informed decisions, contributing to the production and
consumption of quality agricultural products. With the increasing complexity and scale of modern
agricultural practices, there is a growing need for efficient management tools to optimize resources,
improve productivity, and ensure sustainable practices. In conclusion, the Agriculture Management
System (AMS) offers a holistic approach to agricultural management, enabling farmers to optimize
resources, improve productivity, and adopt sustainable practices. By harnessing the power of technology
and data-driven insights, the AMS aims to empower farmers and agribusinesses to thrive in an
increasingly competitive and dynamic agricultural landscape.

Keywords: User-friendly, responsive, HTML, JAVASCRIPT, PHP.

i
TABLE OF CONTENTS

Title Page No.


ABSTRACT i
CHAPTER 1: INTRODUCTION 2
INTRODUCTION 2
STATEMENT OF THE PROBLEM 3
OBJECTIVES 4
LIMITATIONS 4
CHAPTER 2: METHODOLOGY 5
CHAPTER 3: DESIGN 6
REQUIREMENTS 6
SYSTEM DESIGN 6
TECHNOLOGIES USED 7
CHAPTER 4: IMPLEMENTATION 8
CHAPTER: 5 PROPOSED SYSTEM ARCHITECTURE 9
FLOW CHART 10
CHAPTER 6: CODING AND RESULT 11
CODE 11
RESULT 26
CHAPTER 7: CONCLUSION AND FUTURE WORK 30
CONCLUSION 30
FUTURE WORK 30
CHAPTER- 1

INTRODUCTION

1.1 Introduction:

In today's rapidly evolving agricultural landscape, the integration of technology has become indispensable for
enhancing efficiency, productivity, and profitability. The Farm Management System in PHP presented in this project
exemplifies the fusion of innovation and practicality, offering farmers a comprehensive toolset to streamline their
operations and maximize their yields.
At its core, this system revolves around simplicity and functionality, ensuring that users can navigate its features
effortlessly. Upon logging in, users are greeted with a seamless interface where they can manage their inventory,
track transactions, and even engage with their audience through blog publications.
One of the standout features of this system is its versatility in catering to the diverse needs of farmers. Whether they
are managing crops, livestock, or other agricultural products, the system provides a centralized platform for
organizing and optimizing their activities.
Moreover, the administrative capabilities of the system empower users to oversee every aspect of their operations,
offering them full control and flexibility in managing their resources.
In essence, this Farm Management System in PHP represents a significant leap forward in agricultural technology,
offering farmers the tools they need to thrive in an increasingly complex and competitive environment. Its user-
friendly design, coupled with its robust functionality, ensures that users can harness the power of technology to drive
success in their farming endeavors.

2
1.2 Problem Statement:

The lack of an efficient and user-friendly online farm management system tailored to farmers' needs poses a
significant challenge. Existing solutions often lack essential features, suffer from usability issues, or are not
accessible to small-scale farmers due to technical complexities and cost constraints. Addressing this requires the
development of a comprehensive, scalable system integrating IoT for real-time monitoring, enabling farmers to
optimize resources and achieve sustainable growth. This project aims to provide an innovative solution to empower
farmers and enhance productivity in the agriculture sector.

3
1.3 Objectives:

The primary objective of the Online Farm Management System (OFMS) project is to develop a
robust and user-friendly digital solution that addresses the challenges faced by farmers and
agricultural businesses in managing their operations. OFMS aims to streamline farm
management processes by providing a centralized platform where users can efficiently add,
edit, and delete farm details, thereby enhancing organization and planning of agricultural
activities. Additionally, OFMS seeks to facilitate effective crop management by enabling users
to manage crops within their farms, including tasks such as crop planning, rotation, and
monitoring throughout the farming cycle.

1.4 Limitations:

 Internet Dependency: OFMS relies on internet connectivity, which may hinder access and data
synchronization, particularly in areas with limited internet infrastructure.
 Technical Proficiency: Users may require technical skills to utilize all features effectively, posing
challenges for farmers with limited digital literacy.
 Compatibility Issues: OFMS may face compatibility issues with certain hardware or software
configurations, limiting its usability across devices and platforms.
 Data Security Risks: Despite security measures, OFMS could be vulnerable to data breaches or
unauthorized access, raising concerns about privacy and compliance.

4
CHAPTER – 2

METHODOLOGY

The methodology for developing the Online Farm Management System involves a systematic and collaborative
approach. Initially, thorough research and stakeholder consultations will be conducted to gather requirements and
understand the needs of farmers and agricultural businesses. Based on these requirements, the system architecture
and components will be designed, encompassing database schema, backend logic, and frontend interface.
Development will proceed iteratively, implementing features according to best practices and incorporating
stakeholder feedback throughout the process. Rigorous testing will ensure functionality, reliability, and security,
covering unit tests, integration tests, and end-to-end tests. Upon successful testing, OFMS will be deployed on a
suitable hosting environment, followed by user training and acceptance testing. Continuous monitoring and
evaluation post-deployment will inform iterative improvements and new feature implementations. Comprehensive
documentation will facilitate knowledge sharing and support ongoing maintenance. This methodology aims to
deliver a robust, user-friendly, and scalable OFMS that meets the evolving needs of farmers, enhances productivity,
and contributes to the sustainable growth of the agriculture sector.

5
Department of CSSE
CHAPTER – 3
SYSTEM DESIGN

4.1 Requirements:

The user should have the appropriate version of windows.

• The system should have up to 1 GB ram minimum requirement for the application.

• Internet Connectivity is a must for this purpose.

4.2 System Design:

The website has a user-friendly and well-designed design to ensure a smooth browsing
experience. The following sections describe the main content and structure of the site:

HOME PAGE: The home page shows the sign up and login which allows users to search for
the products. Also the home page is integrated with the my cart where products can be added
and list of products list along with blog option where one can write their review about the
products.

DIGITAL MARKET: This website organizes all the available organic farm products along
with their prices which allows the user to add the products to the cart and then buy them
according to their likes.

PAGES: There are different pages in this website one as digital market which has functionality
as mentioned above. And the other is blog where the users and formers are allowed to write
their reviews and ratings.

RESPONSIVE DESIGN: The website is designed to be responsive, responsive, and usable on


a variety of devices, including desktop computers, tablets, and mobile phones. The layouts fit
seamlessly into different parts of the screen, increasing accessibility as users move around.

6
Department of CSSE
4.3 Technologies used:

The website is built using front-end technologies to create an engaging and dynamic user
interface. The key technologies employed in the development of this website are:

HTML5: The website structure and content are created using HTML5, ensuring semantic
markup and proper organization of information.

CSS3: CSS3 is used for styling and visual presentation of the website, including layout design,
color schemes, typography, and responsive elements.

JAVASCRIPT: JavaScript is utilized to implement interactive features such as search


functionality, user reviews, interactive maps, and dynamic content loading.

PHP: PHP is utilized on the server-side to handle user authentication, business logic, and database
interactions, ensuring secure and efficient data management. Additionally, PHP is employed in
generating dynamic web pages and facilitating seamless communication between the frontend
interface and the backend server components.

7
Department of CSSE
CHAPTER - 4

IMPLEMENTATION

The implementation of the project consists of several stages to create a website to showcase
organic farm products by farmers and the users to avail them.

First, a good needs analysis was done to understand the purpose of the project, its target audience
and the work that needs to be done. After the content is collected, the wireframing and design
phase of the website began. This includes clear layouts and designs to provide a clear user
experience, design for consistency across devices, and creating beautiful connections.

After this front-end development phase, which uses HTML5, CSS3, JavaScript, and php to
implement the website's visual content, interactive features, and user interface. The collected
data was organized in the database. The database will create a relationship between information
organizations to enable the retrieval and display of information on the website. We performed
quality testing and quality assurance to ensure website functionality, functionality and browser
compatibility.

8
Department of CSSE
CHAPTER-5
PROPOSED SYSTEM ARCHITECTURE

The system architecture for the website showcasing farm products follows a layered approach.
At the presentation layer, the user interface is developed using technologies like HTML, CSS,
and JavaScript. The application layer handles the business logic and user requests, The data
access layer interacts with the underlying database, performing data retrieval and storage using
technologies like MySQL. The proposed system architecture is designed to be modular, scalable,
and maintainable, allowing for future enhancements and the addition of new features.

9
Department of CSSE
5.1 Flow Chart:

10
Department of CSSE
CHAPTER-6
CODING ANALYSIS AND RESULTS

6.1 Code:

i. Login Page:

<?php
session_start();

$user = dataFilter($_POST['uname']);
$pass = $_POST['pass'];
$category = dataFilter($_POST['category']);

require '../db.php';

if($category == 1)
{
$sql = "SELECT * FROM farmer WHERE fusername='$user'";
$result = mysqli_query($conn, $sql);
$num_rows = mysqli_num_rows($result);

if($num_rows == 0)
{
$_SESSION['message'] = "Invalid User Credentialss!";
header("location: error.php");
}

else
{
$User = $result->fetch_assoc();

if (password_verify($_POST['pass'], $User['fpassword']))
{
$_SESSION['id'] = $User['fid'];
$_SESSION['Hash'] = $User['fhash'];
$_SESSION['Password'] = $User['fpassword'];
$_SESSION['Email'] = $User['femail'];
$_SESSION['Name'] = $User['fname'];
$_SESSION['Username'] = $User['fusername'];
$_SESSION['Mobile'] = $User['fmobile'];
$_SESSION['Addr'] = $User['faddress'];
$_SESSION['Active'] = $User['factive'];
$_SESSION['picStatus'] = $User['picStatus'];
11
Department of CSSE
$_SESSION['picExt'] = $User['picExt'];
$_SESSION['logged_in'] = true;
$_SESSION['Category'] = 1;
$_SESSION['Rating'] = 0;

if($_SESSION['picStatus'] == 0)
{
$_SESSION['picId'] = 0;
$_SESSION['picName'] = "profile0.png";
}
else
{
$_SESSION['picId'] = $_SESSION['id'];
$_SESSION['picName'] = "profile".$_SESSION['picId'].".".$_SESSION['picExt'];
}
//echo $_SESSION['Email']." ".$_SESSION['Name'];

header("location: profile.php");
}
else
{
//echo mysqli_error($conn);
$_SESSION['message'] = "Invalid User Credentials!";
header("location: error.php");
}
}
}
else
{
$sql = "SELECT * FROM buyer WHERE busername='$user'";
$result = mysqli_query($conn, $sql);
$num_rows = mysqli_num_rows($result);

if($num_rows == 0)
{
$_SESSION['message'] = "Invalid User Credentialss!";
header("location: error.php");
}

else
{
$User = $result->fetch_assoc();

if (password_verify($_POST['pass'], $User['bpassword']))
{
$_SESSION['id'] = $User['bid'];
$_SESSION['Hash'] = $User['bhash'];
$_SESSION['Password'] = $User['bpassword'];
12
Department of CSSE
$_SESSION['Email'] = $User['bemail'];
$_SESSION['Name'] = $User['bname'];
$_SESSION['Username'] = $User['busername'];
$_SESSION['Mobile'] = $User['bmobile'];
$_SESSION['Addr'] = $User['baddress'];
$_SESSION['Active'] = $User['bactive'];
$_SESSION['logged_in'] = true;
$_SESSION['Category'] = 0;

//echo $_SESSION['Email']." ".$_SESSION['Name'];

header("location: profile.php");
}
else
{
//echo mysqli_error($conn);
$_SESSION['message'] = "Invalid User Credentials!";
header("location: error.php");
}
}
}

function dataFilter($data)
{
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}

?>

13
Department of CSSE
ii. Home Page:

<?php
session_start();

if(!isset($_SESSION['logged_in']) OR $_SESSION['logged_in'] != 1)
{
$_SESSION['message'] = "You have to Login to view this page!";
header("Location: Login/error.php");
}
?>

<!DOCTYPE HTML>

<html lang="en">
<head>
<title>Profile: <?php echo $_SESSION['Username']; ?></title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="bootstrap\css\bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="bootstrap\js\bootstrap.min.js"></script>
<meta name="description" content="" />
<meta name="keywords" content="" />
<!--[if lte IE 8]><script src="css/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="login.css"/>
<script src="js/jquery.min.js"></script>
<script src="js/skel.min.js"></script>
<script src="js/skel-layers.min.js"></script>
<script src="js/init.js"></script>
<link rel="stylesheet" href="css/skel.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/style-xlarge.css" />

</head>

<body>

<?php
require 'menu.php';
?>

<section id="one" class="wrapper style1 align">


<div class="inner">
<div class="box">
14
Department of CSSE
<header>
<center>
<span><img src="<?php echo 'images/profileImages/'.
$_SESSION['picName'].'?'.mt_rand(); ?>" class="image-circle" class="img-responsive"
height="200%"></span>
<br>
<h2><?php echo $_SESSION['Name'];?></h2>
<h4 style="color: black;"><?php echo $_SESSION['Username'];?></h4>
<br>
</center>
</header>
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-3">
<b><font size="+1" color="black">RATINGS : </font></b>
<font size="+1"><?php echo $_SESSION['Rating'];?></font>
</div>
<div class="col-sm-3">
<b><font size="+1" color="black">Email ID : </font></b>
<font size="+1"><?php echo $_SESSION['Email'];?></font>
</div>
<div class="col-sm-3"></div>
</div>
<br />
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-3">
<b><font size="+1" color="black">Mobile No : </font></b>
<font size="+1"><?php echo $_SESSION['Mobile'];?></font>
</div>
<div class="col-sm-3">
<b><font size="+1" color="black">ADDRESS : </font></b>
<font size="+1"><?php echo $_SESSION['Addr'];?></font>
</div>
<div class="col-sm-3"></div>
</div>
<div class="12u$">
<center>
<div class="row uniform">
<div class="3u 12u$(large)">
<a href="changePassPage.php" class="btn btn-danger" style="text-
decoration: none;">Change Password</a>
</div>
<div class="3u 12u$(large)">
<a href="profileEdit.php" class="btn btn-danger" style="text-decoration:
none;">Edit Profile</a>
</div>
<div class="3u 12u$(xsmall)">
15
Department of CSSE
<a href="uploadProduct.php" class="btn btn-danger" style="text-decoration:
none;">Upload Product</a>
</div>
<div class="3u 12u$(large)">
<a href="Login/logout.php" class="btn btn-danger" style="text-decoration:
none;">LOG OUT</a>
</div>
</div>
</center>
</div>
</div>
</div>
</div>
</section>

<!-- Scripts -->


<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>

</body>
</html>

16
Department of CSSE
iii. Registration Page:

<?php
session_start();

if ($_SERVER["REQUEST_METHOD"] == "POST")
{
$name = dataFilter($_POST['name']);
$mobile = dataFilter($_POST['mobile']);
$user = dataFilter($_POST['uname']);
$email = dataFilter($_POST['email']);
$pass = dataFilter(password_hash($_POST['pass'], PASSWORD_BCRYPT));
$hash = dataFilter( md5( rand(0,1000) ) );
$category = dataFilter($_POST['category']);
$addr = dataFilter($_POST['addr']);

$_SESSION['Email'] = $email;
$_SESSION['Name'] = $name;
$_SESSION['Password'] = $pass;
$_SESSION['Username'] = $user;
$_SESSION['Mobile'] = $mobile;
$_SESSION['Category'] = $category;
$_SESSION['Hash'] = $hash;
$_SESSION['Addr'] = $addr;
$_SESSION['Rating'] = 0;
}

require '../db.php';

$length = strlen($mobile);

if($length != 10)
{
$_SESSION['message'] = "Invalid Mobile Number !!!";
header("location: error.php");
die();
}

if($category == 1)
{
$sql = "SELECT * FROM farmer WHERE femail='$email'";

$result = mysqli_query($conn, "SELECT * FROM farmer WHERE femail='$email'") or


die($mysqli->error());

if ($result->num_rows > 0 )

17
Department of CSSE
{
$_SESSION['message'] = "User with this email already exists!";
//echo $_SESSION['message'];
header("location: error.php");
}
else
{
$sql = "INSERT INTO farmer (fname, fusername, fpassword, fhash, fmobile, femail, faddress)
VALUES ('$name','$user','$pass','$hash','$mobile','$email','$addr')";

if (mysqli_query($conn, $sql))
{
$_SESSION['Active'] = 0;
$_SESSION['logged_in'] = true;

$_SESSION['picStatus'] = 0;
$_SESSION['picExt'] = png;

$sql = "SELECT * FROM farmer WHERE fusername='$user'";


$result = mysqli_query($conn, $sql);
$User = $result->fetch_assoc();
$_SESSION['id'] = $User['fid'];

if($_SESSION['picStatus'] == 0)
{
$_SESSION['picId'] = 0;
$_SESSION['picName'] = "profile0.png";
}
else
{
$_SESSION['picId'] = $_SESSION['id'];
$_SESSION['picName'] = "profile".$_SESSION['picId'].".".$_SESSION['picExt'];
}

$_SESSION['message'] =

"Confirmation link has been sent to $email, please verify


your account by clicking on the link in the message!";

$to = $email;
$subject = "Account Verification ( ArtCircle.com )";
$message_body = "
Hello '.$user.',

Thank you for signing up!

Please click this link to activate your account:

18
Department of CSSE
http://localhost/AgroCulture/Login/verify.php?email=".$email."&hash=".$hash;

//$check = mail( $to, $subject, $message_body );

header("location: profile.php");
}
else
{
//echo "Error: " . $sql . "<br>" . mysqli_error($conn);
$_SESSION['message'] = "Registration failed!";
header("location: error.php");
}
}
}

else
{
$sql = "SELECT * FROM buyer WHERE bemail='$email'";

$result = mysqli_query($conn, "SELECT * FROM buyer WHERE bemail='$email'") or


die($mysqli->error());

if ($result->num_rows > 0 )
{
$_SESSION['message'] = "User with this email already exists!";
//echo $_SESSION['message'];
header("location: error.php");
}
else
{
$sql = "INSERT INTO buyer (bname, busername, bpassword, bhash, bmobile, bemail, baddress)
VALUES ('$name','$user','$pass','$hash','$mobile','$email','$addr')";

if (mysqli_query($conn, $sql))
{
$_SESSION['Active'] = 0;
$_SESSION['logged_in'] = true;

$sql = "SELECT * FROM buyer WHERE busername='$user'";


$result = mysqli_query($conn, $sql);
$User = $result->fetch_assoc();
$_SESSION['id'] = $User['bid'];

$_SESSION['message'] =

"Confirmation link has been sent to $email, please verify


your account by clicking on the link in the message!";

19
Department of CSSE
$to = $email;
$subject = "Account Verification ( ArtCircle.com )";
$message_body = "
Hello '.$user.',

Thank you for signing up!

Please click this link to activate your account:

http://localhost/AgroCulture/Login/verify.php?email=".$email."&hash=".$hash;

//$check = mail( $to, $subject, $message_body );

header("location: profile.php");
}
else
{
//echo "Error: " . $sql . "<br>" . mysqli_error($conn);
$_SESSION['message'] = "Registration not successfull!";
header("location: error.php");
}
}
}

function dataFilter($data)
{
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}

?>

20
Department of CSSE
iv. My Cart(Product list):

<!DOCTYPE html>
<!--
Interphase by TEMPLATED
templated.co @templatedco
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
-->
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AgroCulture</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<!--[if lte IE 8]><script src="css/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="login.css"/>
<link rel="stylesheet" type="text/css" href="indexFooter.css">
<script src="js/jquery.min.js"></script>
<script src="js/skel.min.js"></script>
<script src="js/skel-layers.min.js"></script>
<script src="js/init.js"></script>
<noscript>
<link rel="stylesheet" href="css/skel.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/style-xlarge.css" />
</noscript>
<!--[if lte IE 8]><link rel="stylesheet" href="css/ie/v8.css" /><![endif]-->
</head>
<body class="landing">

<!-- Header -->


<header id="header">

<nav id="nav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="generic.html">Generic</a></li>
<li><a href="elements.html">Elements</a></li>
<li><a href="elements.html">Blog</a></li>
</ul>
</nav>
</header>

<!-- One -->

21
Department of CSSE
<section id="one" class="wrapper style1 align-center" >
<div class="container" >
<header>
<h2>Welcome to digital market</h2>

<section id="two" class="wrapper style2 align-center">


<div class="container" >
<form method="post" action="#">
<div class="row uniform 50%">
<div class="4u 12u$(small)"></div>
<div class="4u 12u$(small)">

<input type="text" name="pname" id="pname" value=""


placeholder="Search" style="background-color:white;color: black;" />
</div>
<div class="4u 12u$(small)">

<ul class="actions">
<li><input type="submit" value="Go!!" class="special" /></li>

</ul>
</div>
<div class="12u 12u$(small)">
<h2 style="font-size: 120%;">Searcgh by Following Categories-</h2>
</div>
<div class="12u 12u$(small)">
<br>
</div>
<br>
<div class="4u 12u$(small)">
<input type="radio" id="priority-low" name="priority" checked>
<label for="priority-low"><h2 style="font-size:
120%;">Grains</h2></label>
</div>
<div class="4u 12u$(small)">
<input type="radio" id="priority-normal" name="priority">
<label for="priority-normal"><h2 style="font-size:
120%;">Friuts</h2></label>
</div>
<div class="4u$ 12u$(small)">
<input type="radio" id="priority-high" name="priority">
<label for="priority-high"><h2 style="font-size: 120%;">
Vegetables</h2></label>
</div>

</div>

22
Department of CSSE
</div>
</form>
</div>
</section>
</header>
</section>

<!-- Footer -->


<!--<footer id="footer">
<div class="container">
<div class="row">
<section class="4u 6u(medium) 12u$(small)">
<h3>Welcome to Digital market</h3>

<ul class="alt">
<li><a href="#">Lorem ipsum dolor sit amet.</a></li>
<li><a href="#">Quod adipisci perferendis et itaque.</a></li>
<li><a href="#">Itaque eveniet ullam, veritatis reiciendis?</a></li>
<li><a href="#">Accusantium repellat accusamus a, soluta.</a></li>
</ul>
</section>
<section class="4u 6u$(medium) 12u$(small)">
<h3>Nostrum, repellat!</h3>
<p>Tenetur voluptate exercitationem eius tempora! Obcaecati suscipit, soluta earum
blanditiis.</p>
<ul class="alt">
<li><a href="#">Lorem ipsum dolor sit amet.</a></li>
<li><a href="#">Id inventore, qui necessitatibus sunt.</a></li>
<li><a href="#">Deleniti eum odit nostrum eveniet.</a></li>
<li><a href="#">Illum consectetur quibusdam eos corporis.</a></li>
</ul>
</section>
<section class="4u$ 12u$(medium) 12u$(small)">
<h3>Contact Us</h3>
<ul class="icons">
<li><a href="#" class="icon rounded fa-twitter"><span
class="label">Twitter</span></a></li>
<li><a href="#" class="icon rounded fa-facebook"><span
class="label">Facebook</span></a></li>
<li><a href="#" class="icon rounded fa-pinterest"><span
class="label">Pinterest</span></a></li>
<li><a href="#" class="icon rounded fa-google-plus"><span
class="label">Google+</span></a></li>
<li><a href="#" class="icon rounded fa-linkedin"><span
class="label">LinkedIn</span></a></li>
</ul>
<ul class="tabular">
<li>
23
Department of CSSE
<h3>Address</h3>
1234 Somewhere Road<br>
Nashville, TN 00000
</li>
<li>
<h3>Mail</h3>
<a href="#">someone@untitled.tld</a>
</li>
<li>
<h3>Phone</h3>
(000) 000-0000
</li>
</ul>
</section>
</div>
<ul class="copyright">
<li>&copy; Untitled. All rights reserved.</li>
<li>Design: <a href="http://templated.co">TEMPLATED</a></li>
<li>Images: <a href="http://unsplash.com">Unsplash</a></li>
</ul>
</div>
</footer>-->

<footer class="footer-distributed" style="background-color:black" id="aboutUs">


<center>
<h1 style="font: 35px calibri;">About Us</h1>
</center>
<div class="footer-left">
<h3 style="font-family: 'Times New Roman', cursive;">ART CIRCLE &copy; </h3>
<div class="logo">
<a href="index.php"><img src="images/logo.png" width="200px"></a>
</div>
<p style="font-size:20px;color:white">Art is God <br />& we are devotees !!!</p>
<br />
</div>

<div class="footer-center">
<div>
<i class="fa fa-map-marker"></i>
<p style="font-size:20px">Walchand College Of Engineering<span>Sangli 416
</span></p>
</div>
<div>
<i class="fa fa-phone"></i>
<p style="font-size:20px">9765106359</p>
</div>
<div>
24
Department of CSSE
<i class="fa fa-envelope"></i>
<p style="font-size:20px"><a href="mailto:artistkattawce@gmail.com"
style="color:white">artistkattawce@gmail.com</a></p>
</div>
</div>

<div class="footer-right">
<p class="footer-company-about" style="color:white">
<span style="font-size:20px"><b>About ART CIRCLE</b></span>
Art Circle is a club established by the students of Walchand College of Engineering,
Sangli
to nurture the art in various forms.
</p>
<div class="footer-icons">
<a href="https://www.facebook.com/wceartcircle/"><i style="margin-left: 0;margin-
top:5px;"class="fa fa-facebook"></i></a>
<a href="https://www.instagram.com/wce_artcircle/?hl=en"><i style="margin-left:
0;margin-top:5px" class="fa fa-instagram"></i></a>
<a href="https://www.youtube.com/channel/UCwyXHtmyoQI5EXKEBp2NaIQ"><i
style="margin-left: 0;margin-top:5px" class="fa fa-youtube"></i></a>
</div>
</div>

</footer>

</body>
</html>

25
Department of CSSE
6.2 Result:

i. Home Page:
This page is the website home page, where you can find about all the choices and services
offered in our platform and explore different organic products fresh and directly from farm.

ii. Digital Market:


This is the page where a user can find the option to view the products and search them according
to their needs and also can edit their profile.

26
Department of CSSE
iii. Login page:
This is the page where an existing user can log in and view all the features of the
website.

iv. Registration Page:

If a user is new to the webpage, they can register and login here and get information
about all the available farm products and their prices and the can find the reviews of the
product which can ease the selection.

27
v. Products page:

Once the user chooses the digital market the user can now search for the products and
add them to the cart according to their choice and preferences.

28
vi. Profile page:

If the user wishes to know more about their profile and details about them which they have entered
before, then user can use the profile page and alter any changes if needed.

vi. Blog page:

This is the webpage where a user can review their purchased product and and can also give rating to the
products. Here users can also view other rviews and ratings given by others customers to know about the
product before purchase.

29
CHAPTER-7

CONCLUSION ANDFUTURE

WORK

7.1 Conclusion:

In conclusion, the development of the Online Farm Management System (OFMS) represents a
significant step towards addressing the challenges faced by farmers and agricultural businesses in
managing their operations efficiently. Through a systematic and collaborative approach, we have
designed and implemented a comprehensive solution that encompasses key functionalities such as
farm and crop management, expense tracking, real-time monitoring, and user-friendly interfaces.
By leveraging modern web technologies and incorporating stakeholder feedback, OFMS aims to
empower farmers to optimize resource utilization, improve decision-making, and achieve
sustainable growth in the agriculture sector. Moving forward, continuous monitoring, evaluation,
and iterative improvements will be essential to enhance the functionality, usability, and scalability
of OFMS, ensuring its long-term viability and impact. With its potential to revolutionize farm
management practices and contribute to the advancement of modern agriculture, OFMS holds
promise in driving positive change and fostering innovation in farming communities worldwide.

7.2 Future Work:

In future endeavors, the Online Farm Management System (OFMS) could expand its capabilities in several key
areas. Enhanced integration with IoT devices offers the potential for deeper real-time monitoring of crop growth
and environmental conditions, enabling farmers to make more informed decisions. Furthermore, incorporating
predictive analytics could empower farmers to anticipate crop yields and identify risks, while the development of a
mobile application companion for OFMS could improve accessibility, especially for farmers in remote areas.
Integration with supply chain management systems would streamline coordination and optimize distribution
processes. Advanced reporting features and decision support tools could provide farmers with valuable insights
into their operations and market trends. Additionally, fostering community and knowledge sharing within the
platform could facilitate collaboration and learning among farming communities. Integration with government
initiatives and subsidies would provide further support to farmers, while ongoing optimization of user experience
ensures the system remains intuitive and efficient. Through these future developments, OFMS can continue to
evolve as a comprehensive and impactful solution, empowering farmers and contributing to the sustainability and
growth of the agriculture sector.

30
31
32
33
34

You might also like