Hi need some help suggestion
I am trying to search data form two date range but it seems not working properly when i search for
$from_date = "2013-04-01";
$to_date = "2013-04-04";
$query = mysql_query("SELECT * FROM date WHERE Date between '" . $from_date . "' AND '" . $to_date . "' ORDER by id DESC");
it will only return
Guest 1 2013-04-01
Guest 2 2013-04-02
Guest 3 2013-04-03
Guest 4 2013-04-01
it is omitting
Guest 5 2013-04-04
and i also try uisng this query
$query = mysql_query("SELECT * FROM date WHERE Date >= '" . $from_date . "' AND Date <= '" . $to_date . "' ORDER by id DESC");
it will show just the same result
Here's my table
id Name Date
1 Guest 1 2013-04-01
2 Guest 2 2013-04-02
3 Guest 3 2013-04-03
4 Guest 4 2013-04-01
5 Guest 5 2013-04-04