<?php
$date1=strtotime($date);
$date2=strtotime("$date + 1 day");
$onedate = strtotime("2011-10-01"); $enddate = strtotime("2011-10-31"); select * from tab where dd <= '{$enddate}' and dd>='{$onedate}';?>
<?php
$date1=strtotime($date);
$date2=strtotime("$date + 1 day");
$onedate = strtotime("2011-10-01"); $enddate = strtotime("2011-10-31"); select * from tab where dd <= '{$enddate}' and dd>='{$onedate}';?>