Warning: mktime() expects parameter 4 to be long, string given in index.php on line 1437
Código PHP:
if($row1['birth']!=0)
{
$year=split("-",$row1['birth']);
if($year[0]>=1970){
$time=getdate();
$a=mktime(0,0,0,$time[month],$time[mday],$time[year]); // esta es la linea que me da error
$b=mktime(0,0,0,$year[1],$year[2],$year[0]);
$age=($a-$b)/(60*60*24*365);
$age=intval($age);
}else
$age = $thisyear-$year[0];
echo "<tr width=40% bgcolor=\"#eeeeee\"><td align=\"left\"><b>"._AGE."</b></td><td>".$age."<b>"._YRSOLD."</b></td></tr>";
}
Saludos