Hi everyone,
i need help here..
i want to calculate age of user.... but i am getting this error
****Catchable fatal error: Object of class DateInterval could not be converted to string in C:\xampp****
while($row=mysqli_fetch_assoc($data))
{
$date=$row['Dateofbirth'];
}
$dob= new DateTIME($date);
$interval=$dob->diff(new DateTIME);