kproc
12-10-2006, 08:08 PM
hi
I have a table with a persons year of birth and the below query that I want to display names if bday is within xdays
how do I change the bday to set the year to the current year
$today = strtotime("Now");
$leadDate = strtotime("+250 day", $today);
$thisdate = date("Y-m-d", $leadDate);
echo $thisdate;
$get_childdob = mysql_query("SELECT owner_id, childdob FROM children WHERE childdob BETWEEN CURDATE() AND '$thisdate'")or die (mysql_error());
I have a table with a persons year of birth and the below query that I want to display names if bday is within xdays
how do I change the bday to set the year to the current year
$today = strtotime("Now");
$leadDate = strtotime("+250 day", $today);
$thisdate = date("Y-m-d", $leadDate);
echo $thisdate;
$get_childdob = mysql_query("SELECT owner_id, childdob FROM children WHERE childdob BETWEEN CURDATE() AND '$thisdate'")or die (mysql_error());