Log In · Register

 
A good birthday list, php script for my site
1angel3
post Feb 7 2008, 09:10 PM
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.
 
 
Start new topic
Replies (1 - 5)
freeflow
post Feb 9 2008, 02:49 PM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



Without a database? You can do it manually. This site for example, you just have people email you their birthday, then from there you can just add them into a list.

Also if you google, a lot of PHP script sites come up you can go through as well.

I knew of one before with PHP , I just gotta find it. If I do i'll edit (:
 
1angel3
post Feb 10 2008, 05:43 PM
Post #3


Naomi loves you. Y'all may call me NaNa
******

Group: Official Designer
Posts: 2,925
Joined: Jun 2006
Member No: 427,774



Yeah I may do that, thanks for the help.
 
newkidontheblock
post Feb 11 2008, 05:17 PM
Post #4


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>
 
1angel3
post Feb 11 2008, 09:11 PM
Post #5


Naomi loves you. Y'all may call me NaNa
******

Group: Official Designer
Posts: 2,925
Joined: Jun 2006
Member No: 427,774



^ Oh thanks I may use that instead.
 
newkidontheblock
post Feb 12 2008, 05:48 AM
Post #6


Offline.
*****

Group: Official Designer
Posts: 609
Joined: Mar 2007
Member No: 507,591



No Prob, PM me to re-open this topic.
Topic: Closed
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: