I wanted to use like query together with between query...how can i combine them together?
this is how I tried to do so?
$today = date('Y-m-d');
$lastWeek = date("Y-m-d", strtotime("-7 days"));
$selected_value = $search_value = $_POST["category"]; 
$sql = "SELECT * FROM work WHERE category like '%$selected_value%' AND date_added BETWEEN '" . $lastWeek . "' AND  '" . $today . "'";
what I wanted is to select all data lists from work column where category is some value and the date is inserted in the last 7 days... how can I fix this error? 
 
     
     
    