I am using LEFT JOIN, with between dates but its not working
$start = date("Y-m-d",strtotime($_POST["demo1"]));
$end = date("Y-m-d",strtotime($_POST["demo2"]));
$query = "SELECT Coloums FROM bilty
LEFT JOIN runningexp ON bilty.bilty_no=runningexp.bilty_no
WHERE bilty.vehicle = '$vehicle'
AND bilty.date1 BETWEEN '$start' and '$end' Order by bilty.bilty_no";
Thanks in advance.
1 Answer