You are on page 1of 20

VISVESVARAYA TECHNOLOGICAL UNIVERSITY, BELAGAVI

A DBMS MINI PROJECT REPORT ON


ONLINE VOTING SYSTEM

IN
INFORMATION SCIENCE & ENGINEERING
By

AISHWARYA S 4AL21IS003
CHAITRA S K 4AL21IS013
KRUPASHREE R 4AL21IS023
LAYA R 4AL21IS024

Under the Guidance of


Prof. Jayanth kumar Rathod
Associate Professor

DEPARTMENT OF INFORMATION SCIENCE & ENGINEERING ALVA’S


INSTITUTE OF ENGINEERING AND TECHNOLOGY MOODBIDRI-574225,
KARNATAKA
2023 – 2024

1
ALVA’S INSTITUTE OF ENGINEERING AND TECHNOLOGY MIJAR, MOODBIDRI,
D.K. -574225

DEPARTMENT OF INFORMATION SCIENCE & ENGINEERING

CERTIFICATE

This is to certify that the DBMS Mini Project entitled “ONLINE VOTING SYSTEM” has been
successfully completed by

AISHWARYA S 4AL21IS003

CHAITRA S K 4AL21IS013

KRUPASHREE R 4AL21IS023

LAYA R 4AL21IS024

the bonafide students of Department of Information Science & Engineering, Alva’s Institute
of Engineering and Technology in DEPARTMENT OF INFORMATION SCIENCE &
ENGINEERING of the VISVESVARAYA TECHNOLOGICAL UNIVERSITY, BELAGAVI during the
year 2023–2024. 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
Mini Project work prescribed for the Bachelor of Engineering Degree.

Associate Prof
JayanthKumar A. Rathod Dr. Sudheer Shetty
Mini Project Guide HOD ISE
EXTERNAL VIVA
Name of the Examiners Signature with Date

1.

2.
2
ALVA’S INSTITUTE OF ENGINEERING AND TECHNOLOGY MIJAR,
MOODBIDRI, D.K. -574225

DEPARTMENT OF INFORMATION SCIENCE & ENGINEERING

Declaration
We,

AISHWARYA S

CHAITRA S K

KRUPASHREE

LAYA R

hereby declare that the mini project entitled, online voting system is completed and written by us
under the supervision of our guide Associate Prof. Jayanth Kumar A Rathod, HOD CSD,
Department of Information Science and Engineering, Alva’s Institute of Engineering And
Technology, Moodbidri, DEPARTMENT OF INFORMATION SCIENCE & ENGINEERING of the
VISVESVARAYA TECHNOLOGICAL UNIVERSITY, BELAGAVI during the academic year 2023-
2024.The mini project report is original and it has not been submitted for any other degree in any
university.

AISHWARYA S 4AL21IS003
CHAITRA SK 4AL21IS013
KRUPASHREE R 4AL21IS023
LAYA R 4AL21IS024

3
ACKNOWLEDGEMENT
The satisfaction and euphoria that accompany a successful completion of any task would be
incomplete without the mention of people who made it possible, success is the epitome of
hard work and perseverance, but steadfast of all is encouraging guidance.
So, with gratitude we acknowledge all those whose guidance and encouragement
served as beacon of light and crowned the effort with success.
The selection of this mini project work as well as the timely completion is mainly due
to the interest and persuasion of our mini project coordinator Associate Prof.JayanthKumar
A Rathod, Assistant Professor, Department of Information Science & Engineering. We will
remember his contribution for ever.
We sincerely thank, Dr.Sudheer Shetty, Associate professor and Head, Department
of Information Science & Engineering who has been the constant driving force behind the
completion of the project.
We thank our beloved Principal Dr.Peter Fernandes, for his constant help and
support throughout.

We are indebted to Management of Alva’s Institute of Engineering and Technology,


Mijar, Moodbidri for providing an environment which helped us in completing our mini
project.

Also, we thank all the teaching and non-teaching staff of Department of Computer
Science & Engineering for the help rendered.

AISHWARYA S 4AL21IS003
CHAITRA S K 4AL21IS013
KRUPASHREE R 4AL21IS023
LAYA R 4AL21IS024

4
CONTENTS

ACKNOWLEDGMENT i
ABSTRACT ii

CHAPTER PAGE NO

1. Introduction 06

2. Analysis 07
Proposed System
Scope of the Project
Aim of the project

3. Requirement Specifications 10
Details of Software
Xampp
html, python, php etc
System requirements
Hardware Configuration
Software Configuration

4. System Design 14
E R Diagram
Schema Diagram

5. System Implementation 16
Modules Description

6. Sample Output 21
Screenshots

7. Conclusion 24

Bibliography 25

5
chapter 1:
INTRODUCTION
"ONLINE VOTING SYSTEM" is an online voting technique. In this system people who
have citizenship of Kenya and whose age is above 18 years of age and any sex can give his\
her vote online without going to any physical polling station. There is a database which is
maintained in which all the names of voters with complete information is stored.

In "ONLINE VOTING SYSTEM" a voter can use his\her voting right online without any
difficulty. He\She has to be registered first for him/her to vote. Registrations mainly done by
the system administrator for security reasons. The system Administrator registers the voters
on a special site of the system visited by him only by simply filing a registration form to
register voter. Citizens seeking registration are expected to contact the system administrator
to submit the details. After the validity of them being citizens of India has been confirmed by
the system administrator by comparing their details submitted with those in existing
databases such as those as the Registrar of Persons, the citizen is then registered as a voter.

After registration, the voter is assigned a secret Voter ID with which he/she can use to log
into the system and enjoy services provided by the system such as voting If invalid/wrong ds
are submitted, then the citizen is not registered to vote.

Chapter 2: SYSTEM ANALYSIS

After analyzing the requirements of the task to be performed, the next step is to analyze the
problem and understand its context. The first activity in the phase is studying the existing
system and other is to understand the requirements and domain of the new system. Both the
activities are equally important, but the first activity serves as a basis of giving the functional
specifications and then successful design of the proposed system. Understanding the
properties and requirements of a new system is more difficult and requires creative thinking
and understanding of existing running system is also difficult, improper understanding of
present system can lead diversion from solution.

2.1 Proposed System:


2.1.1 Scope of the Project
The Online voting system (OVS) also known as e-voting is a term encompassing several
different types of voting embracing both electronic means of counting votes. Electronic
voting technology can include punched cards, optical scan voting systems and specialized
voting kiosks(including self -contained direct recording electronic voting systems or DRE). It
can also involve transmission of ballots and votes via telephones, private computer networks,
or the internet. Online voting is an electronic way of choosing leaders via a web driven
application. The advantage of online voting over the common "queue method" is that the

6
voters have the choice of voting at their own free time and there is reduced congestion. It also
minimizes on errors of vote counting. The individual votes are submitted in a database which
can be queried to find out who of the aspirants for a given post has the highest number of
votes.This system is geared towards increasing the voting percentage in Kenya since it has
been noted that with the old voting method (the Queue System), the voter turnout has been a
awanting case.With system in place also, if high security is applied, cases of false votes shall
be reduced. With the "ONLINE VOTING SYSTEM", a voter can use his\ her voting right
online without any difficulty. He\She has to register as a voter first before being authorized to
vote. The registration should be done prior to the voting date to enable data update in the
database.

However, not just anybody can vote. For one to participate in the elections he/she must have
the requirements. For instance, he/she must be a registered citizen i.e. must be 18 and above
years old. As already stated, the project 'Online Voting' provides means for fast and
convenient voting and access to this system is limited only to registered voters. Internet
voting systems are appealing for several reasons which include; People are getting more used
to work with computers to do all sorts of things, namely sensitive operations such as
shopping and home banking and they allow people to vote far from where they usually live,
helping to reduce absentee ism rate.

Aim of the project:


 The system should be easy to operate.
 The working in the organization will be well planned and organized.
 The level of accuracy in the proposed system will be higher.
 The reliability of the proposed system will be high due to proper storage of
information.
 Provide quick and efficient retrieval of information.

Advantages:
1. Low maintenance cost.
2. Volume of data is not an issue.
3. Data can be converted easily to information.
4. Data cannot be corrupted easily with proper backup.
5. It can be expanded as well as data communication is possible.

Disadvantages:
1. High starting cost requires.
2. Additional manpower is necessary.
3. Data communication system will have an additional cost.

7
Chapter 3: Requirement Specification
3.1 Details of Software:

3.1.1 Xampp

XAMPP is free and open source cross-platform web server software, released under terms of
Apache License 2.0. Apache is maintained by open community of developers under the
auspices of Apache Software Foundation. In XAMPPX stands for cross-platform, A stands for
Apache, M stands for Maria DB, P stands for PHP, P stands for Perl.
 Developer(s)- Apache Friends
 Initial release-May 22,2002
 Stable release-8.1.1-Windows
8.1.1-Linux
8.1.1-macOS
 Operating system Cross-platform
Linux
Window
Solaris
XAMPP is a small and light Apache distribution containing the most common web
development technologies it the ideal tool for students XAMPP is available as a free
download in two specific packages: full and lite. While the full package download provides a
wide array of development tools, XAMPP Lite contains the necessary technologies that meet
the Ontario Skills Competition standards. The light vers is a small package containing
Apache HTTP Server, PHP, MySQL, phpMyAdmin, Openssl , and SQLite.

3.1.2: Frontend-HTML

It is the standard markup language for creating web pages and web applications. With
Cascading Style Sheets (CSS) and JavaScript, it forms a triad of cornerstone technologies for
the World Wide Web. Web browsers receive HTML documents from a web server or from
local storage and render the documents into multimedia web pages. HTML describes the
structure of a web page semantically and originally included cues for the appearance of the
document. HTML can embed programs written in scripting language such as JavaScript which affects
the behaviour and content of web pages. Inclusion of CSS defines the look and layout of content. The
World Wide Web Consortium (W3C), maintainer of both the HTML and the css standards, has
encouraged use of CSS over explicit presentational HTML since 1997.

8
3.1.3: Backend-MySQL

It is an open source relational database management system(RDBMS). The MySQL


development project has made its source code available under the terms of GNU General
Public License, as well as under a variety of proprietary agreements. MySQL was owned and
sponsored by a single for-profit firm, the Swedish company MySQL AB, now owned by
Oracle Corporation. For proprietary use, several paid editions are available, and offered
additional functionality. MySQL is central component of LAMP open-source web
application software stack. LAMP is an acronym of “Linux, Apache, MySQL, and
Perl/PHP/Python”. Applications that use the MySQL database include TTPO3, MODx,
Joonal, WordPress, phpBB, MyBB, and Drupal. MySQL is also used in many high profile.
Large-scale websites, including Google, Facebook, Twitter, Flick , and YouTube. Operating
System Windows 10.

3.1.4: PHP

PHP is a server-side scripting design for web language development but also used as a
general-purpose programming language. PHP is now installed on more than 244 million
websites and 2.1 million web servers. Originally created by Rasmus Lerdorf in 1995, the
reference implementation of PHP is now produced by The PHP Group While PHP originally
stood for Personal Home Page, it now stands for PHP: Hypertext Pre-processor, a recursive
backronym. PHP code is interpreted by a web server with a PHP processor module, which
generates the resulting web page:
PHP commands can be embedded directly into an HTML source document rather than
calling an external file to process data. It has also evolved to include a command-line
interface capability and can be used in standalone graphical applications. PHP is free
software released under the PHP License. PHP can be deployed on most web servers and also
as a standalone shell on almost every operating system and platform, free of charge.

9
3.1.5: APACHE

The Apache HTTP Server is web server software notable for playing a key role in the initial
growth of the World Wide Web. In 2009 it became the first web server software to surpass
the 100 million website milestone. Apache is developed and maintained by an open
community of developers under the auspices of the Apache Software Foundation. Since
April 1996 Apache has been the most popular HTTP server software in use. As of November
2010 Apache served over 59.36% of all websites and over 66.56% of the first one million
busiest websites.

4.1 System requirements


4.l.1 Hardware configuration
Hardware configuration references the details and system resources setting allotted for a
specific device. It is the important concept related to the software development,
insufficient random access memory may affect adversely on the speed and efficiency of
the whole system.
4.1.2 Software Configuration
The output of a software process is information that may be divided into three categeries
[a]Computer program (both source level and executable level),
[b]Work products that describes the computer program (targeted at both
technical and end user),
[c]Data (contained within the program or external to it).

The items that comprise all the information produced as part of software process are
collectively called as software configuration. A major element in building a system is
selection of compatible software since the software in market experiencing in geometric
progression selected software should be flexible to all system. This document gives the
detailed description of the software requirement specification.
Front-end-Tool-
HTML, Python Back-
end Tool – MySQL
Development Tool-
Xampp server Code
editor- Visual Studio
Code Documentation
Tool- Microsoft
Word

10
Chapter 4: SYSTEM DESIGN

ER Diagram

11
Schema Diagram

The database schema of a database system is its structure described in a formal


language supported by the database management system (DBMS). The term "schema"
refers to the organization of data as a blueprint of how the database is constructed (divided
into database tables in the case of relational databases). The formal definition of a
database schema is a set of formulas (sentences) called integrity constraints imposed on a
database.

12
Chapter 5: SYSTEM IMPLEMENTATION
5.1 Modules description
*Create, create table statement is used to create table to store data. Integrity
constraints like primary key, foreign key, unique key, can be defined while creating the table.
Create code for every table
5.2.1 admin table
CREATE TABLE IF NOT EXISTS `admin` (
`id` int(11) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(60) NOT NULL,
`firstname` varchar(50) NOT NULL,
`lastname` varchar(50) NOT NULL,
`photo` varchar(150) NOT NULL,
`created_on` date NOT NULL)
ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

Figure 5.2.1: admin Table Description.


5.2.2 candidate table
CREATE TABLE IF NOT EXISTS `candidates` (
`id` int(11) NOT NULL,
`position_id` int(11) NOT NULL,

13
`firstname` varchar(30) NOT NULL,
`lastname` varchar(30) NOT NULL,
`photo` varchar(150) NOT NULL,
`platform` text NOT NULL)
ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=latin1;

Figure 5.2.2: candidate table description.


5.2.3 position table

CREATE TABLE IF NOT EXISTS `positions` (


`id` int(11) NOT NULL,
`description` varchar(50) NOT NULL,
`max_vote` int(11) NOT NULL,
`priority` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;

14
Figure 5.2.3: position table description
5.2.1 voters table
CREATE TABLE IF NOT EXISTS `voters` (
`id` int(11) NOT NULL,
`voters_id` varchar(15) NOT NULL,
`password` varchar(60) NOT NULL,
`firstname` varchar(30) NOT NULL,
`lastname` varchar(30) NOT NULL,
`photo` varchar(150) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;

Figure 5.1.4: voters table description

5.2.1 votes table

CREATE TABLE IF NOT EXISTS `votes` (


`id` int(11) NOT NULL,
`voters_id` int(11) NOT NULL,
`candidate_id` int(11) NOT NULL,
`position_id` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=126 DEFAULT CHARSET=latin1;

15
Figure 5.2.5: votes table description.
5.3 OPERATIONS PERFORMED:
*Insertion, insertion is use to insert the tuple or row to the table. We insert
value from frontend by making use HTTP the value inserted from to frontend will
be going to store in backend database in XAMPP Server
*Update, update will help to edit the tables in the database. In this
project we have given update option for table package, to update the place
column in package table.
*Delete, delete will help us to delete a tuple or row from the table. In this
project we have delete option for table employee to delete the particular row or
employee information from the table.
* Trigger, a trigger is a special kind of stored procedure that automatically executes when
an event occurs in the database server. DML triggers execute when a user tries to modify
data through a data manipulation language(DML) event. DML events are INSERT,
UPDATE, OR DELETE statements on a table or view. In this project we added trigger on
trigger on table package to give discount of 10% if the group has more than 10 travelers

Chapter 6: Sample Output

16
17
18
19
Chapter 7 CONCLUSION
To conclude the description about the project, this was developed using XAMPP Server
with PHP & MySQL is based on the requirement specification of the users and analysis of
the existing system, with flexibility for future enhancement.This Online Voting system
will manage the Voters information by which voter can login and use his voting rights.
The system will incorporate all features of Voting system. It provides the tools for
maintaining voter's vote to every party and it count total no. of votes of every party.
There is a DATABASE which is maintained by the ELECTION COMMISSION OF
INDIA in which all the names of voter with complete.

In this user who is above 18 years register his/ her information on the database and when
he/she want to vote he/she has to login by his id and password and can vote to any party
only single time. Voting detail store in database and the result is displayed by calculation.
By online voting system percentage of voting is increases. It decreases the cost and time
of voting process. It is very easy to use and It is vary less time consuming. it is very easy
to debug

20

You might also like