// calculating age on a certain day function dayAge($birthdate,$day,$month,$year) { $splitBirthdayParts = explode("-",$birthdate); $myDay=(int)$splitBirthdayParts[2]; $myMonth=(int)$splitBirthdayParts[1]; $myYear=(int)$splitBirthdayParts[0]; //now get today's values $age=""; $todaysDay = $day; $todaysMonth = $month; $todaysYear = $year; $age=$todaysYear-$myYear; if ($todaysMonth<$myMonth) { $age--; } if ($todaysMonth==$myMonth) { if ($todaysDay<$myDay) { $age--; } } if (!is_numeric($age)) $age="???"; return $age; } //calculating age on a certain year function yearAge($birthdate,$year) { $splitBirthdayParts = explode("-",$birthdate); $myDay=(int)$splitBirthdayParts[2]; $myMonth=(int)$splitBirthdayParts[1]; $myYear=(int)$splitBirthdayParts[0]; $age=""; $todaysYear = $year; $age=$todaysYear-$myYear; return $age; } // To make text Columns function textColumn($title, $name, $value, $required = false) { if($required){ $title = $title."*"; } echo"