$query = $conn->query("select * from data where id = '$get_id'")or die(mysql_error());
$query1 = "select date_format(now(), '%Y') - date_format(dob, '%Y') - (date_format(now(), '00-%m-%d') < date_format(dob, '00-%m-%d'))
as age from data where id = '$get_id'";
$result = mysql_query($query1);
$values = mysql_fetch_assoc($result);
$age = $values['age'];
$row = $query->fetch();
我如何获得id来计算个人的年龄 因为我得到错误。请帮忙。三江源