Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

Easter Egg Hunt

Links for php scripts

Moderators: macek, egami, gesf

Easter Egg Hunt

Postby blaze41 » 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?
blaze41
New php-forum User
New php-forum User
 
Posts: 5
Joined: Sun May 15, 2011 7:47 am

Re: Easter Egg Hunt

Postby seandisanti » 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
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron