$query1 = "SELECT *FROM sales where date between '$date' and '$date1'";
$result = mysql_query($query1);
while ($row = mysql_fetch_array($result)) {
Result:
please check below link
Date from 01-06-2014 to 27-06-2014
enter link description here
get proper result of select date month year, need proper result with day month year. Its urgent
if some one select from 01-06-2014 to 27-06-2014 result should show between dates any entry.. but its should showing some other date range which is not selected..
hope you understand