Quote:
Yes I do realize this the problem I am having is this
When I MANUALLY end a lottery and NO WINNER is choosed by the random function. The current users are still IN the lottery and the lottery doesnt close. My board is small so not many people buy tickets. What I would like to do is when I push the end lottery button and a random winner IS NOT choose the people who bought tickets are reset so they can buy tickets again. Otherwise it will be MONTHS before they will be able to buy again. Plus the lottery doenst end when no winner is choosen it just stays there.
|
here is a fix
in storeadm.php
find:
PHP Code:
$graa=$DB_site->query("SELECT * FROM user WHERE posts>100 ORDER BY RAND() desc LIMIT 15");
replace by
PHP Code:
$graa=$DB_site->query("SELECT * FROM storelottery WHERE lotnumber='2' ORDER BY RAND() desc LIMIT 1");
thats all