Raffle Draw System using PHP and JavaScript Free Source Code

Language

This is a simple project called Raffle Draw System. It is a web-based application that was developed with PHP and JavaScript. The application manages the raffle draw tickets, draws winners, and randomly selects the draw winners. It has a simple and pleasant user interface with the help of Bootstrap v5 Framework. it also consists of user-friendly features and functionalities.

How does Raffle Draw System work?

This Raffle Draw System is a simple web program that allows a certain organization or event management to conduct an automated raffle draw. It does not require any user registration or log in to access the features and functionalities of the system.

Here, the user must or event staff must populate first the list of ticket details. He/She can also edit or delete the ticket(s) from the list. The system is able to select the draw winner randomly which has a user interface for randomly selecting the winner per draw. The draw selection is displayed in a simple slider. The draw winner details will be shown on a modal after the application has determined the winner.

Technologies

Here are the following Technologies I used for developing the application

Database

  • MySQL (MariaDB v10.4.24)

Front-end

  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Ajax
  • Bootstrap

Back-end

  • PHP

Features and Functionalities

Here are the features and functionalities of the Raffle Draw System

  • Create New Ticket
  • Edit Ticket
  • Delete Ticket
  • List Tickets
  • Random Raffle Draw Winner Selection
  • Switch for Including/Excluding the Winners
  • List Winners

Snapshots

Ticket List

PHP- Raffle Draw System

Raffle Draw Page

PHP- Raffle Draw System

Draw Winner Modal

PHP- Raffle Draw System

List of Winners

PHP- Raffle Draw System

The Raffle Draw System was mainly developed for educational purposes only in terms of giving the IT/CS students of new programmers a reference of how to develop such an application using the mentioned languages or technologies. I have provided the project source code file on this article and is free to download.

How to Run?

Requirements

  • Download and Install any local web server such as XAMPP.
  • Download the provided source code zip file. (download button is located below)

System Installation/Setup

  1. Open your XAMPP Control Panel and start Apache and MySQL.
  2. Extract the downloaded source code zip file.
  3. Copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database named raffle_db.
  6. Import the provided SQL file. The file is known as raffle_db.sql located inside the source code root folder.
  7. Browse the Raffle Draw System in a browser. i.e. http://localhost/php-js-raffle-draw/.

DEMO VIDEO

That's it! You can now test the Raffle Draw System on your end. I hope this PHP Project will help you with what you are looking for and that you'll find something useful from the source code for current and future projects. Feel free to modify the application the way you desire to enhance your programming capabilities.

Explore more on this website for more Tutorials and Free Source Codes.

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Hi, Thank you for the code. How can I change the number of times the name list rotates/spins? Currently it's 3 times and I want it only once. Thank you

Add new comment