Web-based voting system built with PHP and MySQL.
- XAMPP (Apache + MySQL + PHP)
- Web browser
index.php- voter login/start pageadmin/- admin panel pagesincludes/- shared frontend PHP includesadmin/includes/- shared admin PHP includesdb/votesystem.sql- database schema and seed data
- Install XAMPP.
- Copy this project folder into your XAMPP
htdocsdirectory.- Example path:
C:\xampp\htdocs\online-voting-system-using-PHP
- Example path:
- Start Apache and MySQL from the XAMPP Control Panel.
- Open phpMyAdmin at
http://localhost/phpmyadmin. - Create a new database named
votesystem. - Import the SQL file:
- Open the
votesystemdatabase - Go to Import
- Select
db/votesystem.sql - Click Go
- Open the
- Open the project in your browser:
http://localhost/online-voting-system-using-PHP/
- Open the admin panel:
http://localhost/online-voting-system-using-PHP/admin/
- Username: harie
- Password: dummy_password
- If you see a database connection error, verify MySQL is running and
votesystemexists. - If pages do not load, verify the project folder name in
htdocsmatches your URL. - If login fails, reset credentials directly in the database with a new
password_hashvalue from PHP.
- Admin Images — contains screenshots of all admin panels
