ok say my birthday is May 19, 1987
with that in mind i would be 17 turning 18 but the script is saying the person is 18 already which isnt good because i have parts of the site blocked to anyone under the age of 18 ok here is the code
$old = mysql_query("select adv_dob from members where mem_username='$uname'");
$old = mysql_fetch_array($old);
$age = date("Y-m-d") - $old['adv_dob'];
the birthday in the database looks like this
1987-05-19
so it would be the birthday - the current date should give the age right?