Jump to content
MakeWebGames

Lottery System


Recommended Posts

This is the lottery system I have created. It is fully customizable as it allows you to change the price of tickets, how often you want lottery draws to take place and the amount of numbers that users can choose from.

Features

 

  • 5 number lottery.
  • Users can buy multiple tickets.
  • Edit the cost of tickets.
  • Edit the amount of numbers that users can choose from.
  • Edit how often you want the lottery draw to take place.

 

SQL

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

lottery.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

lottery_control.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

lottery_cron.php (I added comments to this so it is simpler to understand the logic)

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

NOTE: It looks like the <br /> tags have been removed; however, just insert them where line breaks are required.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...