note 77636 added to function.mktime

From: Date: Thu, 06 Sep 2007 14:27:50 +0000
Subject: note 77636 added to function.mktime
Groups: php.notes 
Request: Send a blank email to php-notes+get-130258@lists.php.net to get a copy of this message
how can i display the age if the birthdate is stored in the database.. i'm using php.. i have this code <?php $now = mktime(); $timeofbirth = mktime(0,0,0); $Age = $now - $timeofbirth; $Age2 = $Age /(60*60*24*365.25); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 203.87.198.142 ---- Manual Page -- http://www.php.net/manual/en/function.mktime.php Edit -- https://master.php.net/note/edit/77636 Del: integrated -- https://master.php.net/note/delete/77636/integrated Del: useless -- https://master.php.net/note/delete/77636/useless Del: bad code -- https://master.php.net/note/delete/77636/bad+code Del: spam -- https://master.php.net/note/delete/77636/spam Del: non-english -- https://master.php.net/note/delete/77636/non-english Del: in docs -- https://master.php.net/note/delete/77636/in+docs Del: other reasons-- https://master.php.net/note/delete/77636 Reject -- https://master.php.net/note/reject/77636 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130258) next »