Hi, got a little problem
I have a formular for a search query in database.
Actually it's running, i can ask to search people between age but it doesn't print me people who was born before 1970
CODE
$bday_high = date('U',strtotime("-$search_age_from years"));
$bday_low = date('U',strtotime("-$search_age_to years"));
$query = mysql_query("SELECT * FROM bhost_users WHERE gender='$search_looking_for' $avatarrow AND birthday BETWEEN $bday_low AND $bday_high LIMIT $src->toplim,$src->npp") or die(mysql_error()); }
Can i do it with strtotime or need i modify something?
Best regards
Stephane