รายการซ้ำที่เป็นไปได้:
คำนวณปีนับจากวันที่
Hi,
ฉันมีตารางที่มีช่องแสดงวันเกิด จะค้นหาอายุของบุคคลจากวันนั้นได้อย่างไร?
นี่คือสิ่งที่ฉันมี
$qPersoonsgegevens = "SELECT * FROM alg_persoonsgegevens WHERE
alg_persoonsgegevens_leerling_ID = $leerling_id";
$rPersoonsgegevens = mysql_query($qPersoonsgegevens);
$aPersoonsgegevens = mysql_fetch_assoc( $rPersoonsgegevens );
$timeBirthdate = mktime($aPersoonsgegevens['alg_persoonsgegevens_geboortedatum']);
น่าเสียดายที่ฉันไม่รู้ว่าจะต้องทำอย่างไรจากจุดนั้นเพื่อให้ได้อายุ
ขอขอบคุณสำหรับความช่วยเหลือใดๆ มาก
Matthy