i am making a query to get birthdays for next 10 days . i was able to make a query for today but even after referring some post was not able to make it for next 10 days. Here is the query i made to get birthdays for today
$count=mysql_query("SELECT u.fname, u.lname, u.profile_pic, u.uid, u.bday, f.uid,
f.friend_id, f.status FROM friend_list f, users_profile u
WHERE f.uid = '$id' AND f.status = '1'
AND u.uid = f.friend_id
AND DAY(STR_TO_DATE(u.bday, '%m-%d-%y')) = DAY(CURDATE())
AND MONTH(STR_TO_DATE(u.bday, '%m-%d-%y')) = MONTH(CURDATE())");
can anyone help me out with a query for 10 days
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…