I wonder if someone could help a novice to create a bit of code that will display birthdays coming up in the next couple of weeks?
I have a mysql database with a date of birth(dob) date field but unsure how to check that field against the present date
I only have at present, and don't knoe if this is right??????
while ($row = mysql_fetch_array($result2))
{
$dob=$row["dob"];
list($year, $month, $day)= explode("-", $dob);
$birth_day = "$day";
$birth_month = "$month";
$birth_year = "$year";
}
Obviously I only need the day and month values but is there a pre built function to do this for me?