0% found this document useful (0 votes)
20 views20 pages

Dbms Report

The document describes an online voting system DBMS mini project. The project aims to create a secure platform for electronic voting by designing a database to store voter and candidate data, and implementing features for voter registration, authentication, ballot generation, and result tabulation while ensuring integrity and accessibility. The proposed solution involves a multi-tier architecture with a secure database, web interface, and authentication mechanisms. The project was implemented using technologies like PHP, MySQL, HTML, CSS, and JavaScript. It provides functions for admin and user login, candidate and voter management, ballot casting and vote tabulation.
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)
20 views20 pages

Dbms Report

The document describes an online voting system DBMS mini project. The project aims to create a secure platform for electronic voting by designing a database to store voter and candidate data, and implementing features for voter registration, authentication, ballot generation, and result tabulation while ensuring integrity and accessibility. The proposed solution involves a multi-tier architecture with a secure database, web interface, and authentication mechanisms. The project was implemented using technologies like PHP, MySQL, HTML, CSS, and JavaScript. It provides functions for admin and user login, candidate and voter management, ballot casting and vote tabulation.
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/ 20

Online Voting 21CSL55

System

CHAPTER 1
INTRODUCTION
1.1 AIM

The aim of the online voting system DBMS mini project is to create a secure and efficient
platform for electronic voting. It involves designing a database schema to store voter and
candidate information, implementing functionalities for voter registration, authentication, ballot
generation, and result tabulation, ensuring integrity and accessibility in the electoral process.

1.2 PROBLEM STATEMENT

The problem statement for the online voting system DBMS mini project is to develop a secure
electronic platform for conducting voting processes. This includes designing a database schema
to store voter and candidate data, implementing authentication mechanisms, and ensuring
integrity in the voting process to prevent fraud and maintain confidentiality.

1.3 OBJECTIVE OF THE PROJECT

The objective of the online voting system DBMS mini project is to create a robust and secure
platform for conducting electronic voting, facilitating efficient voter registration, authentication,
and ballot casting while ensuring the integrity and confidentiality of the electoral process.

1.4 PROPOSED SOLUTIONS

The proposed solution for the online voting system DBMS mini project involves designing and
implementing a multi-tier architecture comprising a secure database system, a user-friendly web
interface, and robust authentication mechanisms. This system will enable efficient management
of voter registration, candidate information, and voting processes while ensuring data integrity
and confidentiality.

Dept. of CSE, 2023- 1|Page


Online Voting 21CSL55
System
CHAPTER 2
SYSTEM DESIGN

Dept. of CSE, 2023- 2|Page


Online Voting 21CSL55
System
CHAPTER 3
IMPLEMENTATION

3.1 Languages used for implementation

HTML : Create HTML forms to collect vehicle details such as make, model, year, VIN, owner
information, etc.

CSS : Apply CSS styles to enhance the visual appearance of the registration forms, buttons, and
other UI elements.

PHP : Implement PHP scripts to handle form submissions, validate input data, and process
registration, renewal, and owner information updates. Write PHP code to establish connections
with the database and execute SQL queries for storing and retrieving data.

JAVA SCRIPT : Implement client-side form validation using JavaScript to ensure that

users enter valid data before submitting the forms.

SQL : Define the database schema including tables for vehicles, owners, registrations, etc., along
with appropriate relationships.

3.2 Platforms and implementation

The online voting system DBMS mini project will be developed using a combination of
platforms and technologies to ensure scalability, security, and user-friendliness. The backend
database management system will likely be implemented using MySQL or PostgreSQL,
providing robust data storage and management capabilities. For the frontend interface, web
development frameworks like Django or Flask in Python or Node.js with Express.js in JavaScript
could be utilized to create a responsive and intuitive user interface accessible across devices.

Dept. of CSE, 2023- 3|Page


Online Voting 21CSL55
System
3.3 SQL Commands and Queries

Creation for table structure for table “admin”

Insertion of values into “admin”.

Creation of Table structure for table `candidates`

Dept. of CSE, 2023- 4|Page


Online Voting 21CSL55
System
Insertion of values into `candidates`

Table structure for table `positions`

Dumping data for table `positions`

Table structure for table `voters`

Dept. of CSE, 2023- 5|Page


Online Voting 21CSL55
System
Dumping data for table `voters`

Table structure for table `votes`

Dumping data for table `votes`

Dept. of CSE, 2023- 6|Page


Online Voting 21CSL55
System
Insertion of Primary Key into created tables

Alteration of created tables

Dept. of CSE, 2023- 7|Page


Online Voting 21CSL55
System

Creation of separate login for “admin” and “user”

<?php
session_start();
include 'includes/conn.php';

if(isset($_POST['login'])){
$username = $_POST['username'];
$password = $_POST['password'];

$sql = "SELECT * FROM admin WHERE username = '$username'";


$query = $conn->query($sql);

if($query->num_rows < 1){

Dept. of CSE, 2023- 8|Page


Online Voting 21CSL55
System
$_SESSION['error'] = 'Cannot find user with that username. Please try
again!';
}
else{
$row = $query->fetch_assoc();
if(password_verify($password, $row['password'])){
$_SESSION['admin'] = $row['id'];
}
else{

$_SESSION['error'] = 'Incorrect password. Please try again!';


}
}

}
else{

$_SESSION['error'] = 'Please provide your Username and Password to continue!';


}

header('location: index.php');

?>

<?php

include 'includes/session.php';

if(isset($_POST['id'])){
$id = $_POST['id'];

$sql = "SELECT * FROM positions";


$pquery = $conn->query($sql);

Dept. of CSE, 2023- 9|Page


Online Voting 21CSL55
System

$output = array('error'=>false);

$sql = "SELECT * FROM positions WHERE id='$id'";


$query = $conn->query($sql);
$row = $query->fetch_assoc();

$priority = $row['priority'] + 1;

if($priority > $pquery->num_rows){


$output['error'] = true;
$output['message'] = 'This position is already at the bottom';
}
else{
$sql = "UPDATE positions SET priority = priority - 1 WHERE priority =
'$priority'";
$conn->query($sql);

$sql = "UPDATE positions SET priority = '$priority' WHERE id = '$id'";


$conn->query($sql);
}

echo json_encode($output);

?>

Dept. of CSE, 2023- 10 | P a g


Online Voting 21CSL55
System
CHAPTER 4
4.1 Results

Fig 4.1 Home window for online voting system

Fig 4.2 About window in online voting system

Dept. of CSE, 2023- 11 | P a g


Online Voting 21CSL55
System

Fig 4.3 Contact us window in online voting system

Fig 4.4 Admin login Page

Dept. of CSE, 2023- 12 | P a g


Online Voting 21CSL55
System

Fig 4.5 Voters login window

Fig 4.6 Admin dashboard

Dept. of CSE, 2023- 13 | P a g


Online Voting 21CSL55
System

Fig 4.7 Manage Positions in voting

Fig 4.8 Manage candidates in election

Dept. of CSE, 2023- 14 | P a g


Online Voting 21CSL55
System

Fig 4.9 Manage voters in election

Fig 4.10 Managing of all voted voters in election

Dept. of CSE, 2023- 15 | P a g


Online Voting 21CSL55
System

Fig 4.11 Managing of ballot paper

Fig 4.12 Managing of Configuration of Title of election

Dept. of CSE, 2023- 16 | P a g


Online Voting 21CSL55
System

Fig 4.13 Voting window in online voting system

Fig 4.14 Submission of Vote by candidate

Dept. of CSE, 2023- 17 | P a g


Online Voting 21CSL55
System
CHAPTER 5
Conclusion and future enhancement
5.1 CONCLUSION

In conclusion, the online voting system DBMS mini project has successfully addressed the need
for a secure and efficient platform for electronic voting. Through the implementation of a robust
database management system and user-friendly interface, the project has provided a reliable
solution for managing voter registration, candidate information, and voting processes. The
utilization of encryption techniques, access controls, and error handling mechanisms has ensured
the security and integrity of the system, preventing unauthorized access and data tampering.
Additionally, hosting the system on a scalable cloud platform has facilitated high availability and
scalability, enabling seamless access to the voting platform for users.

5.2 Future enhancement

1. Blockchain Integration: Implementing blockchain technology to enhance the security


and transparency of the voting process, ensuring immutability and auditability of voting
records.

2. Biometric Authentication: Introducing biometric authentication methods such as


fingerprint or facial recognition to further strengthen voter identity verification and
prevent fraudulent activities.

3. Mobile Application Development: Developing a dedicated mobile application to expand


accessibility and convenience for voters, allowing them to cast their votes from anywhere
using their smartphones.

Dept. of CSE, 2023- 18 | P a g


Online Voting 21CSL55
System
4. Multi-factor Authentication: Adding additional layers of security through multi-factor
authentication, combining something users know (password), something they have
(mobile device), and something they are (biometric).

5. Accessibility Features: Incorporating accessibility features such as screen readers and


voice commands to ensure that the online voting system is inclusive and accessible to
voters with disabilities.

6. Real-time Result Reporting: Implementing real-time result reporting functionalities to


provide instant updates on voting outcomes, increasing transparency and public trust in
the electoral process.

7. Enhanced Data Analytics: Utilizing data analytics techniques to gain insights from
voting patterns and demographics, helping election authorities make informed decisions
for future elections and policy-making.

8. Voter Education and Engagement Tools: Integrating educational resources and


interactive tools within the platform to educate voters about candidates and issues, as well
as encourage civic engagement and voter participation.

9. Secure Remote Voting: Developing a secure mechanism for remote voting, allowing
eligible voters to cast their ballots securely from remote locations while maintaining the
integrity and confidentiality of the voting process.

10. Integration with Government Databases: Establishing integration with government


databases for voter registration and identity verification, ensuring accuracy and
consistency of voter information across systems.

Dept. of CSE, 2023- 19 | P a g


Online Voting 21CSL55
System
5.3 REFERENCES

For the online voting system DBMS mini project, several references were consulted to ensure the
development of a robust and effective solution. These include academic papers, textbooks, online
resources, and documentation from reputable sources. Some key references consulted include
"Database Management Systems" by Raghu Ramakrishnan and Johannes Gehrke, which
provided insights into database design principles and optimization techniques relevant to the
project. Additionally, "Web Development with Django" by Jeff Forcier, Paul Bissex, and Wesley
Chun offered guidance on developing a secure and scalable web interface for the voting system.
Online resources such as the documentation of MySQL and Django frameworks were
instrumental in understanding specific implementation details and best practices. Furthermore,
academic papers on electronic voting systems, cybersecurity, and data privacy were referenced to
incorporate state- of-the-art security measures and ensure compliance with industry standards.
Overall, these references served as invaluable sources of knowledge and guidance throughout the
development process, contributing to the successful implementation of the online voting system
DBMS mini project.

Dept. of CSE, 2023- 20 | P a g

You might also like