Question finding users age

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wb31
Forum Newbie
Posts: 7
Joined: Wed Sep 09, 2009 1:34 pm

Question finding users age

Post by wb31 »

I am trying to find out do. I have a form where a user enters the year they were born. How do I subtract the current year from the year a user was born to get their age using PHP? Thanks
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: Question finding users age

Post by Eric! »

Look for the code posted by me (Eric!) in this thread
viewtopic.php?f=1&t=102259
wb31
Forum Newbie
Posts: 7
Joined: Wed Sep 09, 2009 1:34 pm

Re: Question finding users age

Post by wb31 »

Thanks, that helped! :)
Post Reply