Sir I have this variable
I want to get DATA from 2016-07-01 to 2016-07-17.
In other words I want to get DATA of month given in $date (July) but excluding current date (18)
How to write query
$query = "select * from arrival where ........;