Easter Egg Hunt

Links for php scripts

Moderators: egami, macek, gesf

Post Reply

Fri Apr 18, 2014 2:54 pm

Anyone know of a script or an easy way to create like an easter egg hunt around my site? Say like click on 5 eggs and win a prize type of deal?

php-forum Fan User
php-forum Fan User
Posts: 974
Joined: Mon Oct 01, 2012 12:32 pm

Tue Apr 22, 2014 12:25 am

The easiest way would be just to hard code them on each page, if you really want to make a fun project out of it and do it right though, i would create a table in your database (assuming you have only logged in users able to play) to track the count found for each user. You could then put a little function in each of your header pages to randomly pick a number based on the number of eligible pages, and the number already found, etc. if the number comes up and they haven't found the full count, let them know by giving them a link to click on to register their find. You can get as detailed as you want with it, could actually be kind of a fun project

Post Reply