https://github.com/prithvikings/open-voting-system
This voting system enables users to vote for their preferred groups, track voting status, and update vote counts. Built with PHP and MySQL, it features secure login and user session management.
https://github.com/prithvikings/open-voting-system
mysql php
Last synced: 3 months ago
JSON representation
This voting system enables users to vote for their preferred groups, track voting status, and update vote counts. Built with PHP and MySQL, it features secure login and user session management.
- Host: GitHub
- URL: https://github.com/prithvikings/open-voting-system
- Owner: prithvikings
- Created: 2025-01-24T20:47:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-20T09:11:25.000Z (over 1 year ago)
- Last Synced: 2025-02-20T10:24:02.460Z (over 1 year ago)
- Topics: mysql, php
- Language: PHP
- Homepage:
- Size: 3.18 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
<<<<<<< HEAD
# Open-Voting-System
=======
# Open Voting System
A web-based voting system built with PHP and MySQL, allowing users to vote for their preferred groups, track voting status, and update vote counts. This system includes secure login and user session management.
## Features
- User login and session management.
- Users can vote for a group.
- Tracks the voting status (voted or not).
- Vote count is updated in real-time.
- Responsive and user-friendly UI built with Tailwind CSS.
- Admin and user roles with different access levels.
## Technologies Used
- **Frontend:** HTML, CSS (Tailwind CSS)
- **Backend:** PHP
- **Database:** MySQL
- **Server:** Apache (XAMPP)
## Requirements
- PHP 7.4 or higher
- MySQL (or MariaDB)
- Apache server (XAMPP recommended)
- Composer (if using dependencies)
## Installation
### Step 1: Clone the Repository
```bash
git clone https://github.com/yourusername/voting-system.git
cd voting-system
```
### Step 2: Set Up XAMPP
1. Download and install XAMPP.
2. Start Apache and MySQL from the XAMPP control panel.
### Step 3: Configure the Database
1. Open phpMyAdmin and create a new database called `voting_system`.
2. Import the `voting_system.sql` file (if available) into the newly created database.
### Step 4: Update Database Credentials
Open `connect.php` and set the correct MySQL credentials:
```php
$servername = "localhost";
$username = "root";
$password = ""; // Set your MySQL password if needed
$dbname = "voting_system";
```
### Step 5:
Access the project via http://localhost/voting-system in your browser. Log in to the system and start voting!
## Contributing
Feel free to fork the project, submit issues, and contribute to the code! Please ensure that any pull requests adhere to the existing coding style.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.


>>>>>>> 8aaa40e59809e9840d9b11b909a9ac9d1f5e067a