Professional Documents
Culture Documents
Submitted by
M.ANISH
19BCA002
Mr.S.K.Ravichandran M.SC.,M.PHIL.,
(Assistant Professor Department of BCA)
April 2022
AUTONOMOUS
Kovaipudur, Coimbatore-641042
CERTIFICATION
V.L.B. JANAKIAMMAL COLLEGE OF ARTS AND SCIENCE
AUTONOMOUS
Reaccredited with 'B++' Grade by NAAC, ISO 9001:2008 Certified
KOVAIPUDUR, COIMBATORE-641042.
BONAFIDE CERTIFICATE
This is to certify that the project work entitled "ONLINE VOTING SYSTEM FOR AN
STUDENT UNION ELECTION" is a Bonafide Record of Work done by M.Anish ( 19BCA002 )
submitted in partial fulfillment of the requirements for the Award of the degree of BACHELOR OF
COMPUTER APPLICATION of the BHARATHIAR UNIVERSITY during the year 2019-2022, in
the department of BCA at VLB Janakiammal College of Arts and Science, Kovaipudur, Coimbatore
641042, under my supervision and guidance
Im, M.Anish( 19BCA002 ) hereby declare that the project entitled "ONLINE VOTING
SYSTEM FOR AN STUDENT UNION ELECTION" submitted to the Bharathiar University in
partial fulfillment of the award of the BACHELOR OF COMPUTER APPLICATION is an
original project work done under the guidance of Mr.S.K.Ravichandran M.SC., M.PHIL.,
Assistant professor Department of computer application, VLB Janakiammal college of Arts and
Science, kovai pudur,Coimbatore.
DATE: M.Anish
Acknowledgment
ACKNOWLEDGEMENT
Last, but not least, my Friends, also contributed much of their time and efforts to support
me during my study. Without anyone of them, the work would not have been possible. Thus, I
also want to thank them for their love, support and encouragement
TABLE OF CONTENT
This system is a PHP project that provides an online platform to vote. The system
was developed for a specific school. This project stored the candidate details,
voters details, and etc. the voters in this project are the student of the school,
college and order for them to vote, they must register their system account and
their student ID number is required. After the student registration to the system,
the system admin user will activate the student accounts so they could vote for
their candidates. The system has 3types of users which are the admin, staff, and
voters. The admin can manage all data in this system and the staff has only limited
access to manage the data. This voting system generates a printable report for the
total count of the vote for all candidates. This project was developed using PHP/
MYSQL , MYSQL database,HTML,CSS, Java script and bootstrap for the design.
1. SYNOPSIS
• Registration module
• Admin login
• user login
• Candidate details
• View candidates
• Get voting information
1. REGISTRATION MODULE
In this module the candidates enter their personal details in the given registration form to
create an account
2. ADMIN LOGIN
Administrator login by using his unique username and password with the basic authentication
process in order to maintain security.
3. USER LOGIN
After the registration the user can give the registered username and password to
the corresponding text box.
4. CANDIDATES DETAILS
In this module a candidates details are stored to the database , it deals with the
candidate personal details, life stats, what are the works do to the society these details are
store to the database these details entered by the candidate. It will generate personal details
5. VIEW CANDIDATES
In this module each and every Candidates details and histories are viewed by
the general peoples.
These module used for the voting results are viewed by the general people. Here the
admin post the Information of the voter details.
2. SYSTEM ANALYS
EXISTING SYSTEM
In the proposed system, the election process is carried out through website
in which the candidate details and that candidate pledge and mottos are displayed. So it’s easy
for the general peoples to view the pledge. The registered voters will be able to view
the candidates of the election and cast their vote to any of the candidate and finally they can
see the result.
Hardware specification
• Processor : Pentium IV
• Hard disk capacity : 40 GB
• RAM : 2 GB
• Monitor : 14 “Monitor
• Keyboard : Logitech of 104 keys
• Mouse : Logitech mouse
Software specification
Some new features were added to this operating system, including libraries, the
new file sharing system home group and support for multi touch input. A new “Action
centre” interface was also added to provide an overview of system security and
maintenance of information.
OVERVIEW OF PHP
Lerdorf combined PHP with his own Form Interpreter, releasing the
combination publicly as PHP/FI generally referred to as PHP 2.0 on June 8, 1995. Two
programmers, ZeevSuraski and Andi Gutmans, rebuilt PHP's core, releasing the updated result as
PHP/FI 2 in 1997.
The acronym was formally changed to PHP: Hypertext Pre-processor, at this time.
This is an example of a recursive acronym: where the acronym itself is in its own
definition. In 1998, PHP 3 was released, which was the first widely used version.
PHP 4 was released in May 2000, with a new core, known as the Zend Engine 1.0.
PHP 4 featured improved speed and reliability over PHP 3. In terms of features, PHP 4
added references, the Boolean type,
COM support on Windows, output buffering, many new array functions, expanded
object-oriented programming, inclusion of the PCRE library, and more. Maintenance releases of
PHP
4 are still available, primarily for security updates.
PHP is an intuitive, server side scripting language. Like any other scripting language,
it allows developers to build logic into the creation of web page content and handle data returned
from a web server.
PHP also contains a number of extensions that make it easy to interact with
databases, extracting data to be displayed on a web page and storing information entered by
a website visitor back into the database.
PHP consists of a scripting language and an interpreter. These scripts are embedded
in HTML documents that are served by the web server. The interpreter takes the form of
module
that integrates into the web server, converting the scripts into commands and then executes
to achieve the results defined in the script by the web developer.
FEATURE OF PHP
PHP has many features but it also has some of the unique features such as
PHP supports variable usage without declaring its data type. It will be taken at the
time of the execution based on the type of data it has on its value.
Variable variables
PHP allows changing the variable name dynamically by using variable variables.
PHP provides access logging by creating the summary of recent accesses for the user.
Magic Method
PHP has built in methods starts with (double underscore). These methods can’t
be called directly. Rather, it will be called on the event basis. For example, clone () will
be called, when the clone keyword is used.
Error Reporting
PHP provides the now docs and here docs properties are used to delimit some block
of Context. Now docs and here docs are same except the context in the here docs allow
variable parsing.
Traits
Simple
It is very simple and easy to use, compare to other scripting language it is very
easy and simple, this is widely use all over the world
Faster
Security
Interpreted
Platform Independent
PHP can run in any platform like Linux, UNIX, Mac OS X, Windows etc…
Open Source
Open source means you need not to pay to use PHP, user can download it free.
1. PHP is Open Source. Open Source means you never need to rely on the
manufacturer to release the next version if something doesn’t work or pay for
expensive upgrades.
2. PHP is extendible.
3. Large number of databases is supported.
4. PHP is platform independent. It will run on most of the platforms.
5. Compatible with servers like IIS and APACHE.
6. Low development and maintenance cost with very high performance and reliability
OVERVIEW OF MYSQL
A database management system, or DBMS, gives the user to access to their data
and helps them transform the data into information. Such database system includes dBase,
paradox, IMS, SQL server. This system allows users to create, upload and extract information
from their database.
A database is a structured collection of data. Data refers to the characteristics of people, things
and events. Sql server stores each item in its own fields.
In SQL server, the fields are relating to the particular person, thing or event are
bundledtogether to form a single complete unit of data, called a record. Each record is made
up ofnumber of fields. No two fields in a record can have the same field name.
MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL
is developed, marketed and supported by MySQL AB, which is a Swedish company.MySQL is
becoming so popular because of many good reasons. MySQL is released under an open-source
license. So you have nothing to pay to use it.
MySQL is a very powerful program in its own right. It handles a large subset of
the functionality of the most expensive and powerful database packages. MySQL uses a
standard form of the well-known SQL data language. MySQL works on many operating
systems and with many languages including PHP, PERL, C, C++, JAVA, etc.
MySQL works very quickly and works well even with large data sets. MySQL is
very friendly to PHP, the most appreciated language for web development. MySQL supports
large databases, up to 50 million rows or more in a table. The default file size limit for a
table is 4GB, but you can increase this (if your operating system can handle it) to a theoretical
limit of 8 million terabytes (TB).
MySQL is customizable. The open-source GPL license allows programmers to
modify the MySQL software to fit their own specific environments.
Features of MySQL
Like almost all other database systems on the market, MySQL is a relational
database system.
Client/Server Architecture
SQL compatibility
Sub Selects
Since version 4.1, MySQL is capable of processing a query in the form SELECT*
FROM table1 WHERE x IN (SELECT y FROM table2) (There are also numerous
syntax variants for sub Selects.
Views
Put simply, views relate to an SQL query that is viewed as a distinct database
object and makes possible a particular view of the database. MySQL has supported views
since version 5.0.
Stored procedures
Here we are dealing with SQL code that is stored in the database system.
Stored procedures (SPs for short) are generally used to simplify certain steps, such as
inserting or deleting a data record. For client programmers, this has the advantage that they do
not have to process the tables directly, but can rely on SPs. Like views, SPs help in the
administration of large database projects. SPs can also increase efficiency. MySQL has
supported SPs since version 5.0.
Unicode
MySQL has supported all conceivable character sets since version 4.1,
including Latin-1, Latin-2, and Unicode (either in the variant UTF8 or UCS2).
User interface
There are a number of convenient user interfaces for administering a MySQL server.
Full-text search
Full-text search simplifies and accelerates the search for words that are located
within a text field. If you employ MySQL for storing text (such as in an Internet discussion
group), you can use full-text search to implement simply an efficient search function.
Replication
Programming languages
ODBC
Platform independence
It is not only client applications that run under a variety of operating systems;
MySQL itself (that is, the server) can be executed under a number of operating systems.
The most important are Apple Macintosh OS X, Linux, Microsoft Windows, and the
countless Unix variants, such as AIX, BSDI, FreeBSD, HP-UX, OpenBSD, Net BSD, SGI
Iris, and Sun Solaris.
Speed
MySQL is considered a very fast database program. This speed has been backed up
by a large number of benchmark tests (though such tests -- regardless of the source -- should
be considered with a good dose of scepticism).
Queries in Mysql
Drop query- It is used to drop table, view or database and it removes structure and data of
a table.
Truncate table query- It is used to truncate or remove records of a table. It does not
remove structur.
5. SYSTEM DESIGN AND DEVELOPMENTPROCESS
Data flow oriented techniques advocate that the major items handled by a system must
be first identified and then the processing required on these data items to produce the desired
outputs should be determined. The DFD (also called as bubble chart) is a simple graphical
formalism that can be used to repeat a system in terms of input data to the system, various
processing carried out on these data, and the output generated by the system. It was
introduced by De Macro (1978), Game and Sarson (1979). The primitive symbols used in DFD.
• Entities
• Relationships
• Attributes
Entity
Relationship
Attribute
ER-DIAGRAM
6. DESIGN PROCESS
INPUT DESIGN
The system considered testing for user acceptance, here it should satisfy the steps Used.
The software should keep in touch with perspective system, user at the time of
Developing and making changes whenever required. This done with respect to the
Following points.
DATABASE DESIGN
SYSTEM TESTING
System testing is an essential step for the development of a reliable and error-
free system. Once source code has been generated, software must be tested to uncover and
correct as many errors as possible before delivery to your customer. Your goal is to design a
series of test cases that have a high likelihood finding errors but how, there are different
methods that provides a systematic guidance for designing tests that, Exercise the internal logic
of software components, and Exercise the input and output domains of the program to uncover
errors in the program function, behaviour, and performance. Software testing is a crucial
element of software quality assurance and represents the ultimate review of specification,
design, and code generation. The work product is a set of test cases designed to exercise both
internal logic and external requirements is designed and documented, expected results are
defined, and actual results are recorded. The primary objectives of testing software are to
execute a program with the intent of finding an error; a good test case will find an as-yet-
undercover error, and a successful that uncover Anas-yet-undercover error.
TESTING STRATEGIES
The basic strategies that were used for testing were following
➢ Specification Testing
➢ Alpha Testing
➢ Black Box Testing
➢ White Box Testing
➢ Regression Testing
➢ Acceptance Testing
➢ Assertion Testing
➢ Unit Testing
➢ System Testing
SPECIFICATION TESTING
Even if the code testing is performed exclusively, it doesn’t ensure against
program failure. Code testing doesn’t answer whether the code meets the agreed
specifications document. It doesn’t also determine whether all aspects of the design are
implemented. Therefore, examining specifications stating what program should do and how it
should be have under various conditions performs specification testing. Test cases are
developed to test the range of values expected including both valid and invalid data. It helps in
finding discrepancies between the system and its original objective. During this testing phase,
all efforts were made to remove programming bugs and minor design faults.
ALPHA TESTING
This test takes place at the developer’s site. Developer observe the user and
note problems. Alpha testing is testing of an application when development is about to
complete. Minor design changes can still be made as a result of alpha testing. Alpha
testing is final testing before the software is released to the general public.
Black-box testing is conducted at the software interface. In Black Box testing only
the functionality was tested without any regard to the code written. If the functionality, which
was expected from a component, is provided then black box testing is completed.
White-box testing, sometimes called glass-box testing is a test case design method that uses
the control structure of the procedural design to derive test cases. In White Box testing
internal code written in every component was tested and it was checked that the code
written is efficient in utilizing various resources of the system like memory or the utilizing
of input, output,
REGRESSION TESTING
In Regression testing the software was tested against the boundary conditions. Various input
fields were tested against abnormal values and it was tested that the software does not behave
abnormally at any time.
ACCEPTANCE TESTING/
In acceptance testing the software was checked for completeness that itis ready. Normally
the quality assurance department performs the acceptance testing that the software is ready and
can be exported.
ASSERTION TESTING
In assertion testing the software is tested against the possible assertions. Assertions are used
to check the program and various locations that whether the state of the program at a
particular point is the same as expected or not.
UNIT TESTING
In unit testing we checked that all the individual components were working properly.
Before integration of the entire components unit testing is essential because it gives a
confidence that all the components individually are working fine and ready to be integrated
with the other ones.
SYSTEM TESTING
When all the units were working properly and unit testing was performed then comes the
time for system testing where we checked all the integrated components as a whole and looked
for possible discrepancies, which could have arisen after the integration.
SYSTEM IMPLEMENTATION
IMPLEMENTATION PRODUCES
LIST OF PROCESS
Future scope
The aim of electronic voting schemes is to provide a set of protocols that allow voters to
cast ballots while a group of authorities collect votes and output the final tally. Problems
with voting machines extend from the quality of the locks, to the need for a printed audit trail, to
the hacking of the communication links. Although voting makes many people to believe
that voting is the perfect application for technology, but in reality applying it is hard. For a
voting system to be ideal, four attributes must be satisfied: anonymity, scalability, speed,
and accuracy. On-line Voting System is a web based system that facilitates the running of
elections and surveys online. This system has been developed to simplify the process of
organizing elections and make it convenient for voters to vote remotely from their computers
while taking into consideration security, anonymity and providing auditioning capabilities.
9. BIBILOGRAPHY
Reference Books
Reference Websites
➢ www.php website.com
➢ www.free PDF.com
➢ www.Details Known as PHP.com
➢ www.learn about PHP.com
➢ www.tutorialspoint.com/sql
➢ www.sqlfiddle.com
10.CODING:
<body>
<heading class="voters_heading">
</heading>
<div class="image">
</div>
<div class="union-infor">
</div>
<?php
include ('footer.php');
?>
</body>
</html>
LOG IN:
<body>
<div class="container">
<div class="row">
<div class="menue">
</div>
<div class="form-panel"><center>
<i>Login As:</i>
</select>
<p/>
</center>
<div class="form-heading">
<center>Student Login</center>
</div>
<div class="form-field">
<label for =
"username">Student ID: </label><br/>
<input class="form-
control" placeholder="Enter Student ID" name="idno" type="text" required = "required"
autofocus>
</div>
<div class="form-field">
<input class="form-
control" placeholder="Enter Password" name="password" type="password" required =
"required">
</div>
<br/>
<a href="register/index.php"><button type="button" class="btn btn-lg btn-
success btn-block" data-dismiss="modal" style= " margin-bottom:0px;">Register</button></a>
?>
</form>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
window.location = src;
</script>
<?php
include ('footer.php');
?>
</body>
</html>
LOG OUT:
<?php
include('dbcon.php');
include('session.php');
session_destroy();
unset($_SESSION);
header('location: index.php');
?>
VOTER:
<body>
<?php include ('view_banner.php');?>
<div class="col-lg-6">
<center>
<div class="voters_notice">
<p><strong><i>NOTE</i>:</strong> if you did not registered for online voting, your
name will not appear on list below and
you can not vote using the online system.</p>
</div>
<strong><h3>Registered Voters List</h3></strong>
</center>
<div class="tables-body">
<div class="table_back">
<table class="table table-striped table-bordered table-hover" id="dataTables-
example" border="0">
<thead class="thead">
<tr>
<th>Student ID</th>
<th>Names</th>
<th>Gender</th>
<th>Program of Sstudy</th>
<th>Year Level</th>
<th>Account</th>
<th>Status</th>
<th>Date Registered</th>
</tr>
</thead>
<tbody>
<?php
require 'admin/dbcon.php';
while($row1 = $query->fetch_array()){
$voters_id=$row1['voters_id'];
?>
<tr >
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
<?php
include ('script.php');
?> </body>
</html>
11.APPENDIX
Publicity Secretary MFA5 Headline Mbewe 2nd Year Female gf Delete at Edit