How to get all data between to dates (from-dates & to_dates )
that user enter from a html form like. When user enter date like, from (1\1\2019) to (30\1\2019)
I want check if that two date between date in MySQL table
I tried :
$from = $_POST['from'];
$end = $_POST['end '];
$sql = "SELECT * FROM table_name WHERE '" . $from . "' between
from_date and to_date and '" . $end . "' between from_date and
to_date
";
from_date and to_date...col in mysql table