SELECT project_name, sdate, edate
FROM projects
WHERE sdate <= $_POST['edate']
AND edate >= $_POST['sdate']
Gives you any project with start date and end date that overlap the Form start date and end date. (assuming the form sdate and edate are in the right format)