Basically that is the function that I use to extract the date from the php and modify it:
function getAge()
{
$result= mysql_query("SELECT date_of_birth
FROM controlpanel
WHERE user_id=".$this->userID) or die(mysql_error());
$year="";
if($row=mysql_fetch_array($result))
{
$row['date_of_birth'];
}
}
$row['date_of_birth']; I want to get the year from that row, and check if it is 0000..if it is I want to return return "Not given";.. if it isnt, I want to compare the full date d-m-y to todays date.. in order to get the persons birth date..however, I am not sure what date functions to use..