OK, I am sure I have the syntax screwed up on this. I am setting up a query and want to use POST data as the WHERE.
This is wrong, How should it be formed?
WHERE
`orders`.`departure_date` BETWEEN $_POST['from_date'] . '00:00' AND $_POST['to_date'] . '23:59'
Thanks
Steve