A good birthday list, php script for my site |
A good birthday list, php script for my site |
![]()
Post
#1
|
|
![]() Naomi loves you. Y'all may call me NaNa ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 2,925 Joined: Jun 2006 Member No: 427,774 ![]() |
I am looking for a php script I can install on my site where people can add their birthday to the list on my site. Anyone know where I can find a good one. NO DATABASE REQUIRED!
If you can't find one with no database required then you can recommended it anyway. I just ask my host for a Mysql account. Thanks in advance. |
|
|
![]() |
![]()
Post
#2
|
|
![]() Offline. ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 609 Joined: Mar 2007 Member No: 507,591 ![]() |
You can try this
CODE <script language="JavaScript">
var arrBday = [ ['Fawaz','2/11/1992'], ['Peter','2/12/1992'], ['John','2/13/1992'] ]; function displayBdayList(today){ var bday,strList=''; for (var i=0;i<arrBday.length;i++){ bday = new Date(arrBday[i][1]); if (!isNaN(bday) && bday.getMonth()==today.getMonth() && bday.getDate()==today.getDate()) strList+='- '+arrBday[i][0]+" ("+(today.getFullYear()-bday.getFullYear())+")<br>"; } if (strList=='') strList='- NONE' document.write("<h4>Today's Birtdays:</h4>"+strList) } displayBdayList(new Date()); </script> |
|
|
![]() ![]() |