Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Age calculation

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Postby nike » Sat Nov 23, 2002 3:49 am


You can use this code:

Code: Select all
$str = $row[bday].'/'.$row[bmonth].'/'.$row[byear];
if (($timestamp = strtotime($str)) === -1) {
    echo "The string ($str) is bogus";
} else {

Bereza Nikita
Rapid Internet Development Department
Alar Information Technologies,
New php-forum User
New php-forum User
Posts: 7
Joined: Fri Sep 06, 2002 7:59 am
Location: Ukraine

Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot] and 4 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.