Reportdbms
Reportdbms
Reportdbms
TABLE OF CONTENTS
1. INTRODUCTION………………………………………………………………………………...
1.1 Aim of the Project……………………………………………………………………
1.2 Overview of the Project ………..................................................................................
1.3 Outcome of the Project ………………………………………………………………
1.4 Software Requirements……………………………………………………………….
1.5 Software Description………………………………………………………………..
3. IMPLEMENTATION
3.1 Description of Tables
3.2 Constraint on Table
3.3 Back End Implementations
3.4 Front End Implementations
4. RESULT ANALYSIS
4.1 Snap Shots
6. REFERENCES
Online Voting System
Chapter 01
INTRODUCTION
In the dynamic landscape of modern democracy, the utilization of advanced technologies is
becoming increasingly vital for ensuring efficient and secure electoral processes. The Online
Voting System is a Database Management System (DBMS) mini project designed to streamline the
voting process, making it more accessible, convenient, and secure. This project aims to harness the
power of database management to handle voter registration, candidate information, and the voting
process in a comprehensive and organized manner.
1.1 Aim of the Project
The primary aim of the Online Voting System project is to modernize and optimize the
electoral process by leveraging database management technologies. The project seeks to enhance
accessibility, ensure security and integrity, simplify voter registration, facilitate informed decision-
making, improve efficiency, promote transparency, encourage public participation, and serve as a
model for future elections. Ultimately, the project aims to showcase the potential of Database
Management Systems in revolutionizing democratic processes for a more inclusive and efficient
voting experience.
1.2 Overview of the Project
The Online Voting System project is a pioneering initiative designed to transform traditional
voting methods into a modern, secure, and accessible electoral process. In response to the evolving
needs of democratic societies, this project leverages Database Management Systems (DBMS) to
create an online platform that simplifies voter registration, provides comprehensive candidate
information, and enables secure, transparent, and efficient voting. By embracing the capabilities of
DBMS, the project aims to enhance the integrity of elections, foster public engagement, and serve
as a scalable model for future electoral endeavors.
1.3 Outcome of the Project
The Online Voting System project envisions a transformative impact on the electoral
landscape, ushering in a new era of accessible, secure, and efficient voting processes. As a result of
this endeavor, we anticipate a paradigm shift in the democratic experience, characterized by several
key outcomes. Firstly, the implementation of an online platform promises unprecedented
accessibility, empowering voters to exercise their democratic right conveniently from any location
with internet access.
Online Voting System
Dept. of CS&E, MIT Mysore. 2023-24 2
Online Voting System
The project aims to streamline the voter registration process, introducing online registration to
contribute to the creation of a dynamic and accurate voter database. This, coupled with a
comprehensive candidate database, is poised to empower voters with detailed information about
candidates, fostering an electorate that is informed, engaged, and capable of making educated
voting decisions.
Efficiency and accuracy in election outcomes are anticipated through the automation of the voting
process, real-time monitoring, and result tabulation. This approach seeks to minimize manual errors
and delays, providing a more streamlined and transparent electoral process. Furthermore, the
project aims to encourage increased public participation by removing geographical barriers and
making voting more convenient, ultimately fostering a more engaged citizenry.
Phpmyadmin
Xampp server
Chapter 02
User Management
Voter Registration
Candidate Management
Election Configuration
Security and Authentication
Vote Monitoring
Results Management
Report Generation
Online Voting System
User
Profile Management
Voter Registration
Candidate Information
Voting Interface
Election Information
Results Viewing
Communication Center
History and Activity Log
Accessibility Features
Logout and Session Management
Dashboard and Analytics
General Constraints
External Requirements
It gives a description of the hardware, software and communication interface and
provide basic prototypes of the user interface. Functional requirements are defined according
to the development of the project.
System Requirements
Front end - HTML, CSS,
Middle
- PHP, Java Script
layer
Back end - MYSQL.
Online Voting System
Software Requirements
Operating system - Windows XP – SP2 / 7 / 8.1 above.
Browser - Google chrome.
Hardware Requirements
RAM - 1 GB or Above
The admin login for the application check whether the username and password are correct
or wrong. The database check for the id and return success or error message.
If error then go back to login or else dashboard appears
Online Voting System
Once the session and cookies are generated then there is only communication between the
dashboard and the database.
In this module send the request and take back the response from the database and display
the output according to the user needs.
Online Voting System
Chapter 03
IMPLEMENTATION
3.1.1 Admin
3.1.2 Register
3.1.3 Nominee
Online Voting System
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Admin</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='Log&adm.css'>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-
AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous"/>
<!-- JS, Popper.js, and jQuery -->
</head>
<body>
<div class="login">
<h1>admin panel</h1>
<form action="" method="post" >
<center>
<input type="email" name="Username" required placeholder="Email"><br>
<input type="password" name="Password" required placeholder="Password"><br>
<button type="submit" name="submit" >Submit</button>
</center>
</form>
</div>
<script>
function back(){
window.location="index.html";
}
</script>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "voting_system";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
Online Voting System
if(isset($_POST['submit'])){
$Username=$_POST['Username'];
$Password=$_POST['Password'];
$row=mysqli_num_rows($run);
if($row==1){
echo "<script> window.open('adminPanel.php','_self') </script>";
$_SESSION['Username']= $Username;
}else{
echo "<h5 style='color:red;text-align:center;'>Wrong Username or Password</h5>";
}
}
?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Edit User</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='Register.css'>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-
AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous"/>
<!-- JS, Popper.js, and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-
DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735
Sk7lN" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<div class="registerform">
<h1>Edit User Form</h1>
<?php
$conn = mysqli_connect('localhost', 'root', '', 'voting_system');
if(isset($_GET['edit'])){
$edit_email=$_GET['edit'];
}
?>
<form action="" method="POST" >
<input type="text" name="FullName" value="<?php echo $FullName; ?>" required
placeholder="Full Name">
<input type="tel" name="MobileNo" value="<?php echo $MobileNo; ?>" pattern="[1-9]
{1}[0-9]{9}" maxlength="10" required placeholder="Mobile NO"><br>
<input type="email" name="Email" value="<?php echo $edit_email; ?>" required
placeholder="Email">
<input type="date" name="DOB" value="<?php echo $DOB; ?>" required
placeholder="Date Of Birth"><br>
<input type="password" name="Password" value="<?php echo $Password; ?>" required
placeholder="Password">
<input type="password" name="RePassword" required placeholder="ReEnter
Password"><br>
<button type="submit" name="submit" >Submit</button>
</form>
</div>
<script>
function back(){
window.location="adminPanel.php";
}
</script>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "voting_system";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
if(isset($_POST['submit'])){
$eFullName=$_POST['FullName'];
$eMobileNo=$_POST['MobileNo'];
$eEmail=$_POST['Email'];
$eDOB=$_POST['DOB'];
$ePassword=$_POST['Password'];
$eRePassword=$_POST['RePassword'];
Online Voting System
if($ePassword==$eRePassword){
$run_update=mysqli_query($conn,$update);
if($run_update===true){
echo "<H5 style='color:green;text-align:center;'>Successfully Updated</h5>";
}else{
echo "<center><H5 style='color:red;text-align:center;'>Not
Inseted</h5></center>".mysqli_error($conn);
}
}else{
echo "<H5 style='color:red;text-align:center;'>Password is not Matched with RE-Entered
Password</h5>";
}
}
?>
</body>
</html>
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>login</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='Log&adm.css'>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-
AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous"/>
<!-- JS, Popper.js, and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-
DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735
Sk7lN" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<div class="login">
Online Voting System
<h1>Login</h1>
<form action="" method="POST">
<center>
<script>
function back(){
window.location="index.html";
}
</script>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "voting_system";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
if(isset($_POST['submit'])){
$Email=$_POST['Email'];
$DOB=$_POST['DOB'];
$Password=$_POST['Password'];
// $row_user=mysqli_num_rows($run);
$row_user=mysqli_fetch_array($run);
// $dbEmail=$row_user['Email'];
// $dbDOB=$row_user['DOB'];
// $dbVoted=$row_user['Voted'];
// $dbPassword=$row_user['Password'];
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Register</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='Register.css'>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-
AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous"/>
<!-- JS, Popper.js, and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-
DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735
Sk7lN" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<div class="registerform">
<h1>Registration Form</h1>
<form action="" method="POST" >
<input type="text" name="FullName" required placeholder="Full Name">
<input type="tel" name="MobileNo" pattern="[1-9]{1}[0-9]{9}" maxlength="10" required
placeholder="Mobile NO"><br>
<input type="email" name="Email" required placeholder="Email">
<input type="date" name="DOB" required placeholder="Date Of Birth"><br>
<input type="password" name="Password" required placeholder="Password">
<input type="password" name="RePassword" required placeholder="ReEnter
Password"><br>
<button type="submit" name="submit" >Submit</button>
</form>
</div>
<script>
function back(){
window.location="index.html";
}
Online Voting System
</script>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "voting_system";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
if(isset($_POST['submit'])){
$FullName=$_POST['FullName'];
$MobileNo=$_POST['MobileNo'];
$Email=$_POST['Email'];
$DOB=$_POST['DOB'];
$Password=$_POST['Password'];
$RePassword=$_POST['RePassword'];
if($Password==$RePassword){
$run_insert=mysqli_query($conn,$insert);
if($run_insert===true){
echo "<H5 style='color:green;text-align:center;'>Successfully Inseted</h5>";
}else{
echo "<H5 style='color:red;text-align:center;'>Not Inseted</h5>".mysqli_error($conn);
}
}else{
echo "<H5 style='color:red;text-align:center;'>Password is not Matched with RE-Entered
Password</h5>";
}
}
?>
</body>
</html>
Online Voting System
3.4 Front End Implementations
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Front Page</title>
<meta name='viewport' content='width=device-width, initial-sScale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='index.css'>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-
AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous" />
</head>
<body>
<!-- Nav bar=========================== -->
<div class="bg">
<header class="header navbar-fixed-top">
<ul>
<li><a href="#">India</a></li>
<li><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#view">View</a></li>
<li><a href="Login.php">Login</a></li>
</ul>
</header>
<section class="cent">
<h1 id="text">" Your Vote <br> Your Voice "</h1>
<br><br>
<a href="Register.php" id="btn">Register</a>
<!-- <img src="voting2.jpg"> -->
</section>
</div>
<!-- section 2======================== -->
<h2>
" EVERY VOTE MATTERS "
</h2>
Online Voting System
<br><br>
<p>An online voting system is a software platform that allows groups to securely conduct
votes. High-quality
online voting systems
balance ballot security, accessibility, and the overall requirements of an organization's
voting
event.<br><br>
At their core, online voting systems protect the integrity of your vote by preventing voters
from being able
to vote multiple times.
As a digital platform, they eliminate the need to gather in-person, cast votes using paper, or
by any other
means
(e.g. email, insecure survey software).<br><br>
You may hear an online voting system being referred to as an online e- voting system, or
electronic voting.
These all make reference to the same thing: a secure voting tool that allows your group to
collect input
from your group
and closely scrutinize the results in real time.<br><br><br><br>
</p><br><br>
</div>
<div class="card">
<br><br>
<i class="fas fa-poll-h fa-10x" style="color: black;"></i>
<h1>Result</h1><br><br>
<p><a href="Result_Index.php">View</a></p>
</div>
<br><br>
<!-- <div class="card">
<i class="fas fa-poll-h fa-10x" style="color: black;"></i>
<h1>Result</h1>
<p><button>View</button></p>
</div>
-->
</div>
<!-- Footer ======================== -->
<footer>
Online Voting System
<center>
<div class="sociallogo">
<a href="#"><i class="fab fa-facebook fa-2x"></i></a>
<a href="#"><i class="fab fa-instagram fa-2x"></i></a>
<a href="#"><i class="fab fa-twitter fa-2x"></i></a>
<a href="#"><i class="fab fa-linkedin fa-2x"></i></a>
</div>
<address>
<br>
<h4>Contact</h4>
" MYSORE, KARNATAKA "<br><br>
[email protected]<br>
[email protected]<br>
999XXXXXX
</address> <br>
© Copyright 2021 by XXX. All Right Reserved
</center>
</footer>
</body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Rancho&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orelega+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
/* font-family: 'Orelega One', cursive; */
font-family: 'poppins',sans-serif;
}
body{
margin: 0;
padding: 0;
min-height: 100vh;
}
.bg{
background-image:url("Images/voting2.jpg");
background-repeat: no-repeat;
/* background-attachment: fixed; */
background-position: center;
background-size: cover;
}
.header{
top: 0;
left: 0;
Online Voting System
width: 100%;
padding: 10px 20px;
background-color: rgb(31, 110, 116);
}
.header ul{
display: flex;
justify-content: center;
align-items: center;
}
.header ul li{
list-style: none;
margin-left: 20px;
}
.header ul li a{
text-decoration: none;
padding: 4px 15px;
color: #fff;
font-size: 25px;
font-family: 'Rancho', cursive;
border-radius: 20px;
}
.header ul li a:hover{
background: black;
}
.cent{
position: relative;
width: 100%;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
section #text{
color: rgb(138, 14, 14);
font-size: 8vw;
text-align: center;
font-weight: bolder;
font-family: 'Rancho', cursive;
/* font-family: 'Bebas Neue', cursive; */
/* margin-right: 50%; */
text-shadow:7px 5px 5px rgb(247, 129, 32);
}
section #text:hover{
animation: vote 0.5s ease-out ;
}
@keyframes vote{
Online Voting System
0%{
}
50%{
font-size: 10vw;
}
100%{
}
}
#btn{
position:absolute ;
text-decoration: none;
display: inline-block;
padding: 8px 30px;
background:black;
color: #fff;
font-size: 1.2em;
font-weight: 500;
letter-spacing: 2px;
border-radius: 40px;
transform: translateY(260px);
}
#btn:hover{
box-shadow: 5px 5px 10px gray;
}
.second{
/* position: relative; */
padding: 20px;
background: cadetblue;
min-height: 100vh;
}
.second h1{
font-size:35px;
color: #fff;
margin-bottom: 10px;
font-family: 'Rancho', cursive;
text-align: center;
}
.second h2{
font-size:35px;
color: #fff;
font-family: 'Bebas Neue', cursive;
text-align: center;
margin-bottom: 10px;
}
.second p{
Online Voting System
font-size: 18px;
color: #fff;
}
.third{
background-image: url("Images/Result-bg.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
background-size: cover;
min-height: 100vh;
}
.third h1{
font-size:35px;
margin:20px 20px;
color: blue;
font-family: 'Rancho', cursive;
text-align: center;
font-weight: 400;
}
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
max-width: 300px;
height: 400px;
margin: auto;
text-align: center;
font-family: arial;
background: linear-gradient(to right, #26D0CE, #1A2980);
.card a {
padding: 12px;
color: white;
background-color: #000;
text-align: center;
font-size: 18px;
}
.card a:hover {
opacity: 0.7;
}
footer{
padding: 20px;
margin: 0px;
background: cadetblue;
Online Voting System
}
.sociallogo{
text-align: center;
padding: 10px;
}
.sociallogo a{
margin: 7px;
color: #111111;
position: relative;
}
.sociallogo a:hover{
color: aqua;
}
@media screen and (max-width:620px) {
section #text{
font-size: 80px;
}
}
@media screen and (max-width:480px) {
.header .logo{
font-weight: 400;
font-size: 20px;
}
.header ul li{
margin-left: 5px;
}
.header ul li a{
padding: 6px 10px;
font-size: 20px;
}
section #text{
font-size: 60px;
}
Chapter 04
Online Voting System
RESULT ANALYSIS
4.1 Snapshots
In conclusion, the online voting system project has laid a solid foundation, and further development
and refinement can lead to an even more robust and efficient electoral platform in the future. The
ongoing commitment to innovation and addressing the evolving needs of the electoral process will
contribute to the success and sustainability of the system.
Online Voting System
Chapter 06
REFERENCES