Hey guys,
i store the users birthdate in a field in my members table. It is a date type, and i'm trying to make a section of the site which is only for 18+.
Date is stored like this
YYYY/MM/DD
I grab the value from the DB and then i want to add 18 years to the current date so i can do this
$birthdate = $birthdate + 18 years.
$currentdate = date("Y-m-d");
if($birthdate > $currentdate) {
"You are not 18";
}
So i guess i just need to know how to add 18 years to the variable :X
Any help? thanks![]()





Alot cleaner/easier.

Bookmarks