You can use this code:
- Code: Select all
$str = $row[bday].'/'.$row[bmonth].'/'.$row[byear];
$time=time();
if (($timestamp = strtotime($str)) === -1) {
echo "The string ($str) is bogus";
} else {
$life_in_seconds=$time-$timestamp;
$life_in_minutes=$life_in_seconds/60;
$life_in_hours=$life_in_minutes/60;
........
}
--------------
Bereza Nikita
Rapid Internet Development Department
E-mail: nike@alarit.com
Alar Information Technologies,
URL: http://www.alarit.com

