0% found this document useful (0 votes)
79 views32 pages

Final Project Report

The document describes an Agri-Fram Management System project report submitted by 5 students to fulfill the requirements of a Bachelor of Computer Technology degree. The project involved developing a farm management system using PHP to manage agricultural and farming records through an admin interface. The system allows farmers to plan, monitor and analyze their production activities in one centralized system. It aims to connect farmers and buyers more efficiently to ensure quality food and increase the standardization and efficiency of agricultural processes.

Uploaded by

Sanchita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views32 pages

Final Project Report

The document describes an Agri-Fram Management System project report submitted by 5 students to fulfill the requirements of a Bachelor of Computer Technology degree. The project involved developing a farm management system using PHP to manage agricultural and farming records through an admin interface. The system allows farmers to plan, monitor and analyze their production activities in one centralized system. It aims to connect farmers and buyers more efficiently to ensure quality food and increase the standardization and efficiency of agricultural processes.

Uploaded by

Sanchita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 32

AGRI-FRAM MANAGEMENT SYSTEM USING PHP

PROJECT REPORT
(Lab on Project)

Submitted in partial fulfillment of the requirements for the award of the degree of
BACHELOR OF COMPUTER TECHNOLOGY
At the Bharathiar University

By
DHARSHINI.S (201CT105) JANANI SRI.M (201CT114)

MADHU VARSHINI.S (201CT124) SANCHITA.M (201CT134)

TAMILSELVAN.R (201CT143)

Under the Guidance of


Dr. B. Leelavathi MCA., M. Phil., Ph.D.

Associate Professor, Department of Computer Technology

Dr. N.G.P. ARTS AND SCIENCE COLLEGE


(An Autonomous Institution, Affiliated to Bharathiar University, Coimbatore)
Approved by Government of Tamil Nadu & Accredited by NAAC with A ++ Grade (3rd Cycle -3.64 CGPA)
Dr. N.G.P.-Kalapatti Road, Coimbatore-641 048, Tamil Nadu, India.
Website: www.drngpasc.ac.in | Email: info@drngpasc.ac.in. | Phone: +91-422-2369100

NOVEMBER -2022

1
DECLARATION

DHARSHINI.S (201CT105) JANANI SRI.M (201CT114) MADHU VARSHINI.S (201CT124)


SANCHITA.M (201CT134) TAMILSELVAN.R (201CT143) hereby declare that the project

report entitled “ AGRI-FRAM MANAGEMENT SYSTEM USING PHP ”submitted in partial


fulfillment of the requirement for the award of the degree of Bachelor of Computer Technology at
the Bharathiar University is a record of original project work done during the period of study
supervision and under the guidance of, Dr. B. Leelavathi MCA., M. Phil., Ph.D. Associate
Professor, Department of Computer Technology Dr.N.G.P. Arts and Science College, Coimbatore -
48, and it has not formed on the basis of award of any Degree/ Diploma/ Associateship/ Fellowship or
another similar title to any candidate of any university.

(DHARSHINI.S) (JANANI SRI.M)


Reg. No.: 201CT105 Reg. No.: 201CT114

(MADHU VARSHINI.S) (SANCHITA.M)


Reg. No.: 201CT124 Reg. No.: 201CT134

(TAMIL SELVAN.R)
Reg. No.: 201CT143

Place: Coimbatore
Date:

2
CERTIFICATE
This is to certify that the project, entitled “AGRI-FRAM MANAGEMENT SYSTEM PHP”
submitted in partial fulfillment of the requirement for the award of the degree of Bachelor of
Computer Technology at the Bharathiar University is a record of original project work done by
DHARSHINI.S (201CT105) JANANI SRI.M (201CT114) MADHU VARSHINI.S (201CT124)
SANCHITA.M (201CT134) TAMILSELVAN.R (201CT143) during the period (2020-2023) of his/
her/ their study in Department of Commerce - Finance, Dr.N.G.P. Arts and Science College,
Coimbatore-48 under my supervision and guidance, and the project has not formed the basis for the
award of any Degree/ Diploma/ Associateship/ Fellowship or other similar titles to any candidate of
any university.

(Name of the Guide) (Name of the HoD) (Prof. Dr. V. Rajendran)


Project Guide Professor and Head Professor and Principal

Place: Coimbatore
Date:

Viva-voce Examination held on…………………

Internal Examiner External Examiner

3
ACKNOWLEDGEMENT
This project was the most significant accomplishment in my/ our life and it would not have
been possible without the blessing of God almighty and those who supported and believed in my/ our
caliber.

We record a deep sense of gratitude to Dr. NALLA. G. PALANISWAMI, M.D, AB (USA),


Chairman, Kovai Medical Center Research and Educational Trust (KMCRET) and Dr.
THAVAMANI. D. PALANISWAMI, M.D, AB (USA), Secretary, Dr. N.G.P. Arts and Science
College, Coimbatore for providing me/ us an infrastructure facility to carry out project work
successfully.

We record our sincere thanks to Prof. Dr. V. RAJENDRAN, M.Sc., M.Phil., M. Tech., Ph.D.,
D.Sc., Dr. N.G.P. Arts and Science College, Coimbatore, for every help he rendered before and
during the project.

We express our sincere thanks to Dr. D. Maheshwari M. Sc., M. Phil., Ph. D SET Associate
Professor and Head, Department of Computer Technology, Dr. N.G.P. Arts and Science College,
Coimbatore for showing sustained interest and providing help throughout the period of our work.

We would like to extend sincere thanks to my guide Dr. B. Leelavathi MCA., M. Phil., Ph.D.
Assistant Professor, Department of Computer Technology, Dr. N.G.P. Arts and Science College,
Coimbatore. We sincerely thank for her exemplary guidance and encouragement.

We take this opportunity to acknowledge my sincere thanks to all the staff members of the
Department of Commerce - Finance for their constant inspiration, assistance, and resourceful
guidance for the completion of this project successfully.

We express our sincere thanks to our family and friends for their encouragement, love, prayer,
moral support, advice and sacrifice without which we would not have been able to pursue the course
of our studies.

DHARSHINI.S (201CT105) JANANI SRI.M (201CT114)

MADHU VARSHINI.S (201CT124) SANCHITA.M (201CT134)

4
TAMILSELVAN.R (201CT143)

ABSTRACT

Farm Management System in PHP is developed using PHP, CSS, Bootstrap, and JavaScript. The
project contains an admin side where we can manage all the agricultural and farming records. The
admin plays an essential role in the management of this system. In this project, the admin has full
access to the system. Agro-Culture is the farmer system where they can plan, monitor, and analyze the
activity of the farmer's production system. It manages farmer operations with one system and
organizes data in one place. It helps smart farmers become even smarter. This creates partnerships
with growers and buyers. It inspires farmers to produce and buyers to consume fresh goods.
The Agro-Culture System will make a better connection between Farmers and Buyers to ensure
quality food. Standardize and increase the efficiency of the agro culture process.

5
TABLE OF CONTENTS

Chapter
Contents Page No
Number
Abstract
1 INTRODUCTION 7
2 SYSTEM SPECIFICATION 8
2.1 Software Specification 8
2.2 Hardware Specification 8
3 SYSTEM ANALYSIS 9
3.1 Existing System 9
3.2 Proposed System 9
4 PROBLEM SPECIFICATION 10
4.1 Problem Definition 10
4.2 Module Description 11
5 INPUT DESIGN 12
5.1 Input Design 13
5.2 Output Design 14
6 CONCLUSION 15
7 BIBLIOGRAPHY 16
APPENDICES 17
A. Sample Coding
B. Sample Input
C. Sample Output

6
1. INTRODUCTION

AGRI FARM MANAGEMENT SYSTEM, making and implementing of the decision involved in
organizing and operating a farm for maximum production and profit. Farm management draws on
agricultural economics for information on prices, markets, agricultural policy, and economic
institutions such as leasing and credit. It also draws on plant and animal sciences for information on
soils, seeds, and fertilizer, on control of weeds, insects, and disease, and on rations and breeding; on
agricultural engineering for information on farm buildings, machinery, irrigation, crop drying,
drainage, and erosion control systems; and on psychology and sociology for information on human
behavior. In making his decisions, a farm manager thus integrates data from the biological, physical,
and social sciences. Because farms differ widely, the significant concern in farm management is the
specific individual farm; the plan most satisfactory for one farm may be most unsatisfactory for
another.
Farm management problems range from those of small, near-subsistence, and family-operated farms
to those of large-scale commercial farms where trained managers use the latest technological
advances, and from farms administered by single proprietors to farms managed by the state.
1.1 Objective
The name ‘Agri farm’ indicates Intelligent Agriculture. ‘Agri farm’ is a model farmer management
website application. This site helps farmers to sell their agricultural produce online and suggests best-
in-practice farming processes. Hence, providing a wider market and helping them to not restrict
themselves to the local market. It helps wholesalers and retailers in buying produce from a larger
number of farmers. Thereby, enabling the wholesalers and retailers in expanding their business. It
features online shopping for fertilizers, pesticides, machinery & tools, etc. It helps the farmers to keep
track of their agricultural production with features such as a virtual calendar, weather forecasting, etc.,
and enables them to hire laborers, which in turn, will help the farm laborers to find small jobs by
having a work profile on the website. As a whole, the ‘Agri farm management system’ provides a
concept of virtual agricultural trade to its users.

7
2. SYSTEM SPECIFICATION

2.1 Software Requirements


Operating System: Windows 10.
User Interface: HTML, PHP, CSS, JAVASCRIPT, BOOTSTRAP.
Database: MYSQL.
Application Server: XAMPP Server.
2.2 Hardware Requirements
Processor: Any processor above 500 MHz
RAM: 4GB.
Hard Disk: 2GB free space.
Input Device: Keyboard, Mouse.
Output Device: Monitor.
System type: 32-bit or 64-bit operating system.

8
3. SYSTEM ANALYSIS

This is a thorough examination of a system's different processes and their


interrelationships both within and outside the system. The key question here is why are there so
many flaws in the current system. What measures should be taken to address the problem?
When a user or management begins a study of the software utilizing the current system, analysis
begins. Data was collected on numerous files, decision points, and transactions handled by the
current system during the analysis. For example Data Flow Diagrams, etc. are widely utilized in
the system. For the collection of important information needed to create the system, training,
experience, and common sense are necessary. The system's success is primarily determined by
how well the problem is identified, fully studied, and appropriately implemented via the
selection of a solution.

3.1 EXISTING SYSTEM


In the existing system farmers can sell products in the agricultural produce market committee
(APMC).and farmers can take detail about Agri products in APMCs. And buyers will buy the
products in different markets.

3.2 PROPOSED SYSTEM


The Farmer's condition today is very poor in India. There are many reasons for this condition.
One being the various diseases in the crops and the other being the untimely changes in the
weather. Changes in the weather are natural and cannot be prevented but their impact can be
definitely reduced. The proposed system Agri farm offers a solution to this problem. Agri
farm management system offers location-based services to the farmers. It includes weather
forecasts, a search for nearby farming-related services, services for hiring laborers and
farming tools, and much more. The system aims to reduce the farmer's workload, ease his
daily work and thus ultimately increase the crop produce. Firebase is used for authentication
and real-time database which provides the facility of backend services. For getting nearby
locations, the system uses a standard zip-code database which provides the latitude or
longitude of the zip-code and other information. Further, the system is using web scraping
techniques to get data from the government website to our website.

9
PROBLEM SPECIFICATION

SYSTEM DESIGN AND DEVELOPMENT

In this phase, a logical system is built which fulfills the given requirements. The design phase
of software development deals with transforming the customer’s requirements into a logically
working system. Normally, design is performed in the following two steps:

Primary Design Phase: In this phase, the system is designed at the block level. The blocks are
created on the basis of analysis done in the problem identification phase. Different blocks are
created for different functions; emphasis is put on minimizing the information flow between
blocks. Thus, all activities which require more interaction are kept in one block.

Secondary Design Phase: In the second phase the detailed design of every block is performed.
The general tasks involved in the design process
It is related to accessing the detailed information of a user and a candidate. So, I have initiated this
project with simple requirements regarding the user and candidate information. Some of the problems
for designing and developing this project are discussed below:

DESIGN AND DEVELOPMENT


● Problem in running XAMPP.
● To debug the error during the development.
● To show a relationship between entities.
● Minor error with the database table.

Feasibility Analysis
A feasibility analysis is conducted once the problem is clearly understood. The purpose of the study is
to determine whether the problem is worth solving. It is an analysis and evaluation of a proposed
project to determine if it is technically feasible, feasible with the estimated cost, and profitable.

10
Economic Analysis
The economic feasibility of a system is used to evaluate the benefits achieved and the costs incurred
for the project or system. This is done by a process called cost-benefit analysis. It provides tangible
and intangible benefits like a reduction in cost, more flexibility, faster activities, proper database
management, etc.The application is a medium-scale application and is economically feasible for us to
accomplish it. This involves cost-benefit analysis. Thus, there is no problem with high cost and cost
benefits analysis.

Software Analysis
i) Consumes a long-time for the development of web applications.
ii)Research and analysis cost to determine the actual need in the real world.
iii)Implementation of application in the server and cost associated with the space in the server.

Data Conversion
Another cost associated while implementing this web application is a data conversion. The previously
used software database must be stored and backed up such that there will be no loss in implementing a
new web application which consumes time as well as money.

Operational Feasibility
The system is operationally feasible as the system can be operated by normal users with basic
computer skills without any additional training. We have developed this system with the willingness
and ability to create, manage and operate the system. It is easy for the end users to operate it.

11
IMPLEMENTATION

FRONT END

PHP, which stands 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. Its
syntax draws upon C, Java, and Perl, and is very lean. The main goal of the language is to allow web
developers to write dynamically generated web pages quickly, but you can do much more with PHP.
5.2 Technology used for Implementation (PHP) PHP: PHP is a powerful language and the interpreter,
whether included in a web server as a module or executed as a separate CGI binary, is able to access
files, execute commands, and open network connections on the server. These properties make
anything run on a web server insecure by default. PHP is designed specifically to be a more secure
language for writing CGI programs than Perl or C, and with the correct selection of compile-time and
runtime configuration options, and proper coding practices, it can give you exactly the combination of
freedom and security you need.

BACKEND

Database: A Database Management System (DBMS) is computer software designed to manage


databases, a large set of structured data, and running operations on the data requested by numerous
users. Typical examples of DBMSs include Oracle, DB2, Microsoft Access, Microsoft SQL Server,
Firebird, PostgreSQL, MySQL, SQLite, FileMaker, and Sybase Adaptive Server Enterprise. DBMSs
are typically used by Database administrators in the creation of Database systems. Typical examples
of DBMS use include accounting, human resources, and customer support systems. Originally found
only in large companies with the computer hardware needed to support large data sets, DBMSs have
more recently emerged as a fairly standard part of any company back office. A DBMS is a complex
set of software programs that controls the organization, storage, management, and retrieval of data in a
database.

SQL: Structured Query Language (SQL) is the language used to manipulate relational databases.
SQL is tied very closely to the relational model. • In the relational model, data is stored in structures
called relations or tables. SQL statements are issued for: • Data definition: Defining tables and
structures in the database (DDL used to create, alter and drop schema objects such as tables and

12
indexes). • Data manipulation: Used to manipulate the data within those schema objects (DML
Inserting, Updating, Deleting the data, and Querying the Database).

TESTING

Testing is the major quality control measure used during software development. It is a basic function
to detect errors in the software. During the requirement analysis and design, the output of the
document is usually textual and non-executable after the coding phase the computer programs are
available that can be executed for testing purposes. This implies that testing not only has to uncover
errors introduced during the previous phase. The goal of testing is to uncover requirements, design,
and coding errors in the program. Testing determines whether the system appears to be working
according to the specifications. It is the phase where we try to break the system and we test the system
with real case scenarios at a point.

Levels of Testing:

Unit Testing: The unit testing of the source code has to be done for every individual unit of module
that was developing part of the system and some errors were found for every turn and rectified. This
form of testing was used to check for the behavior that signified the working of the system in a
different environment as an independent functional unit.

Integration Testing: From the individual parts to the cohesion of each part to make the system, there
is a need to test the working between the assembled modules of the system. The modules are
integrated to make up the entire system. The testing process involves finding errors resulting from
unanticipated interactions between the subsystem and system components. It is also concerned with
validating that the system meets its functional and non-functional requirements.

System Testing: The requirement specification document for the entire system is to be tested to see
whether it meets the requirement.

13
6. CONCLUSION

The project “Agri farm management system” is a man-made project and, therefore, there may be
mistakes and limitations. The ideas put up may be different. The terms and names may be different.
However, our sincere effort was to give our best. It is focused on studying the existing system of
agriculture and making sure that the people are getting quality fresh goods. Advanced techniques
like sensor technology can be used in the future for measuring the quality of the product.

14
7. BIBLIOGRAPHY

Books Used:
 i) Javascript By McGrawhill Publication
 ii) Web design with HTML and CSS By Jon Ducket
 iii) Learning web design By Jennifer Niederest Robbins

Website References:
● W3school https://w3schools.com/
● StackOverflow https://stackoverflow.com/
● GeekforGeek https://www.geeksforgeeks.org/

15
APPENDICES
A) uses cases diagram:

Diagram: -1

B) sequence diagram

Diagram: -2

16
SQL CODE:(sample code)
-- phpMyAdmin SQL Dump

-- version 4.6.4

-- https://www.phpmyadmin.net/

--

-- Host: 127.0.0.1

-- Generation Time: Feb 26, 2018 at 07:52 AM

-- Server version: 5.7.14

-- PHP Version: 5.6.25

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 utf8mb4 */;

--

-- Database: `agroculture`

--

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

17
--

-- Table structure for table `blogdata`

--

CREATE TABLE `blogdata` (

`blogId` int(10) NOT NULL,

`blogUser` varchar(256) NOT NULL,

`blogTitle` varchar(256) NOT NULL,

`blogContent` longtext NOT NULL,

`blogTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,

`likes` int(10) NOT NULL DEFAULT '0'

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `blogdata`

--

INSERT INTO `blogdata` (`blogId`, `blogUser`, `blogTitle`,


`blogContent`, `blogTime`, `likes`) VALUES

(19, 'ThePhenom', 'First Blog', '<p>Its Awesome website<img


alt="wink"
src="https://cdn.ckeditor.com/4.8.0/full/plugins/smiley/images/wink_
smile.png" style="height:23px; width:23px" title="wink" /></p>\r\n',
'2018-02-25 13:09:41', 1);

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

--

18
-- Table structure for table `blogfeedback`

--

CREATE TABLE `blogfeedback` (

`blogId` int(10) NOT NULL,

`comment` varchar(256) NOT NULL,

`commentUser` varchar(256) NOT NULL,

`commentPic` varchar(256) NOT NULL DEFAULT 'profile0.png',

`commentTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `blogfeedback`

--

INSERT INTO `blogfeedback` (`blogId`, `comment`, `commentUser`,


`commentPic`, `commentTime`) VALUES

(19, 'Mast yarr', 'ThePhenom', 'profile0.png', '2018-02-25


13:09:54');

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

--

-- Table structure for table `buyer`

--

CREATE TABLE `buyer` (

19
`bid` int(100) NOT NULL,

`bname` varchar(100) NOT NULL,

`busername` varchar(100) NOT NULL,

`bpassword` varchar(100) NOT NULL,

`bhash` varchar(100) NOT NULL,

`bemail` varchar(100) NOT NULL,

`bmobile` varchar(100) NOT NULL,

`baddress` text NOT NULL,

`bactive` int(100) NOT NULL DEFAULT '0'

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--

-- Table structure for table `farmer`

--

CREATE TABLE `farmer` (

`fid` int(255) NOT NULL,

`fname` varchar(255) NOT NULL,

`fusername` varchar(255) NOT NULL,

`fpassword` varchar(255) NOT NULL,

`fhash` varchar(255) NOT NULL,

`femail` varchar(255) NOT NULL,

`fmobile` varchar(255) NOT NULL,

`faddress` text NOT NULL,

20
`factive` int(255) NOT NULL DEFAULT '0',

`frating` int(11) NOT NULL DEFAULT '0',

`picExt` varchar(255) NOT NULL DEFAULT 'png',

`picStatus` int(10) NOT NULL DEFAULT '0'

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `farmer`

--

INSERT INTO `farmer` (`fid`, `fname`, `fusername`, `fpassword`,


`fhash`, `femail`, `fmobile`, `faddress`, `factive`, `frating`,
`picExt`, `picStatus`) VALUES

(3, 'Kaivalya Hemant Mendki', 'ThePhenom',


'$2y$10$22ezmzHRa9c5ycHmVm5RpOnlT4LwFaDZar1XhmLRJQKGrcVRhPgti',
'61b4a64be663682e8cb037d9719ad8cd', 'kmendki98@gmail.com',
'8600611198', 'abcde', 0, 0, 'png', 0);

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

--

-- Table structure for table `fproduct`

--

CREATE TABLE `fproduct` (

`fid` int(255) NOT NULL,

`pid` int(255) NOT NULL,

`product` varchar(255) NOT NULL,

21
`pcat` varchar(255) NOT NULL,

`pinfo` varchar(255) NOT NULL,

`price` float NOT NULL,

`pimage` varchar(255) NOT NULL DEFAULT 'blank.png',

`picStatus` int(10) NOT NULL DEFAULT '0'

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `fproduct`

--

INSERT INTO `fproduct` (`fid`, `pid`, `product`, `pcat`, `pinfo`,


`price`, `pimage`, `picStatus`) VALUES

(3, 27, 'Mango', 'Fruit', '<p>Mango raseela</p>\r\n', 500,


'Mango3.jpeg', 1),

(3, 28, 'Ladyfinger', 'Vegetable', '<p>Its veggie</p>\r\n', 1000,


'Ladyfinger3.jpg', 1),

(3, 29, 'Bajra', 'Grains', '<p>bajre di rti</p>\r\n', 400,


'Bajra3.jpg', 1),

(3, 30, 'Banana', 'Fruit', '<p>Jalgaon banana</p>\r\n', 400,


'Banana3.jpg', 1);

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

--

-- Table structure for table `likedata`

--

22
CREATE TABLE `likedata` (

`blogId` int(10) NOT NULL,

`blogUserId` int(10) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `likedata`

--

INSERT INTO `likedata` (`blogId`, `blogUserId`) VALUES

(19, 3);

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

--

-- Table structure for table `mycart`

--

CREATE TABLE `mycart` (

`bid` int(10) NOT NULL,

`pid` int(10) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `mycart`

--

23
INSERT INTO `mycart` (`bid`, `pid`) VALUES

(3, 27),

(3, 30);

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

--

-- Table structure for table `review`

--

CREATE TABLE `review` (

`pid` int(10) NOT NULL,

`name` varchar(255) NOT NULL,

`rating` int(10) NOT NULL,

`comment` text NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--

-- Table structure for table `transaction`

--

CREATE TABLE `transaction` (

`tid` int(10) NOT NULL,

24
`bid` int(10) NOT NULL,

`pid` int(10) NOT NULL,

`name` varchar(255) NOT NULL,

`city` varchar(255) NOT NULL,

`mobile` varchar(255) NOT NULL,

`email` varchar(255) NOT NULL,

`pincode` varchar(255) NOT NULL,

`addr` varchar(255) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

-- Dumping data for table `transaction`

--

INSERT INTO `transaction` (`tid`, `bid`, `pid`, `name`, `city`,


`mobile`, `email`, `pincode`, `addr`) VALUES

(1, 3, 28, 'sa,j,cns', 'sajc', 'sajch', 'kmendki98@gmail.com',


'sacu', 'ckaskjc');

--

-- Indexes for dumped tables

--

--

-- Indexes for table `blogdata`

--

ALTER TABLE `blogdata`

25
ADD PRIMARY KEY (`blogId`);

--

-- Indexes for table `buyer`

--

ALTER TABLE `buyer`

ADD PRIMARY KEY (`bid`),

ADD UNIQUE KEY `bid` (`bid`);

--

-- Indexes for table `farmer`

--

ALTER TABLE `farmer`

ADD PRIMARY KEY (`fid`),

ADD UNIQUE KEY `fid` (`fid`);

--

-- Indexes for table `fproduct`

--

ALTER TABLE `fproduct`

ADD PRIMARY KEY (`pid`);

--

-- Indexes for table `likedata`

--

ALTER TABLE `likedata`

26
ADD KEY `blogId` (`blogId`),

ADD KEY `blogUserId` (`blogUserId`);

--

-- Indexes for table `transaction`

--

ALTER TABLE `transaction`

ADD PRIMARY KEY (`tid`);

--

-- AUTO_INCREMENT for dumped tables

--

--

-- AUTO_INCREMENT for table `blogdata`

--

ALTER TABLE `blogdata`

MODIFY `blogId` int(10) NOT NULL AUTO_INCREMENT,


AUTO_INCREMENT=20;

--

-- AUTO_INCREMENT for table `buyer`

--

ALTER TABLE `buyer`

MODIFY `bid` int(100) NOT NULL AUTO_INCREMENT;

--

-- AUTO_INCREMENT for table `farmer`

27
--

ALTER TABLE `farmer`

MODIFY `fid` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--

-- AUTO_INCREMENT for table `fproduct`

--

ALTER TABLE `fproduct`

MODIFY `pid` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--

-- AUTO_INCREMENT for table `transaction`

--

ALTER TABLE `transaction`

MODIFY `tid` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- Constraints for dumped tables

--

--

-- Constraints for table `buyer`

--

ALTER TABLE `buyer`

ADD CONSTRAINT `buyer_ibfk_1` FOREIGN KEY (`bid`) REFERENCES


`farmer` (`fid`);

--

-- Constraints for table `likedata`

28
--

ALTER TABLE `likedata`

ADD CONSTRAINT `likedata_ibfk_1` FOREIGN KEY (`blogId`) REFERENCES


`blogdata` (`blogId`);

/*!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 */;

29
SAMPLE INPUT

Backend

Farm login page (fig:-1)

SAMPLE OUTPUT
FRONT END

30
Member login page (fig:-2)

logout page (fig:-3)

31
32

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy