$startd = date('Y-m-d 10:00:00');
$endd = date('Y-m-d 11:59:59');
$strSQL = "select * from counter WHERE DATE_FORMAT(c_date,'%Y-%m-%d')=CURDATE() AND BETWEEN '$startd' AND '$endd'";
Error Query [select * from counter WHERE DATE_FORMAT(c_date,'%Y-%m-%d')=CURDATE() AND BETWEEN '2013-08-23 10:00:00' AND '2013-08-23 11:59:59']