I think it will be helpful for you.
get the result from MYSQL table between two dates in php. try this code:
<?php
$con=mysqli_connect("localhost","root","","database_name");
$first_date=$_POST["first_date"];
$second_date=$_POST["second_date"];
$sql=mysqli_query($con,"SELECT * FROM `table_name` WHERE `date` BETWEEN '".$first_date."' AND '".$second_date."' ");
?>
solved I am trying to fetch data between date