I have a mysql and i want to show information between date1 and date2.
I have this code:
require("date1.php");
require("date2.php");
$query = "SELECT * FROM markers WHERE 1 and Date between '$data1' and '$data2' ";
and in data1.php and data2.php i have
<?php
$data1 = "2015-05-05";
?>
and
<?php
$data2 = "2016-05-05";
?>
My question is how i can read from keyboard the date. I want to can select from my website between what date1 and date2 to show the information.