I need a basic lottery script for my social network.
We use a currency called 'Points' which users earn by doing tasks on the site.
Each entry will cost 1000 points, and the points will go into a prize sum.
Users pick 6 numbers between 1 and 49
This will be the prize layout
1 Number = 1000 points (money back)
2 Numbers = 3000 points
3 Numbers = 10000 points
4 Numbers = 50000 points
5 Numbers = 200000 points
6 Numbers = Jackpot Prize Sum (All entry fees added together)
Users can have as many entries as they want.
The draw will take place each day at a set time.
The total number of entrants must be shown.
Total Entries: 460
Total Jackpot: 460000
When the user wins they get sent a message to their inbox saying how much they won.
Here is a mockup: [url removed, login to view]