Using the below "IF" condition, i wish to get all the records that are less or equal to todays date. I do get the records that are less than todays date but i also get records of the date more than todays date 'coz of the todays year. help me to solve this problem
$d = any date
$m = any month
$y = any year
$td = todays date
$tm = todays month
$ty = todays year
if (($d = $td) && ($m = $tm) && ($y <= $ty))
{
// Do Something
}
please help me
thanx
yusuf