I\'m trying to get PDO to work with a MySQL \'between\'. Below is my code:
$DBH = new PDO(\"mysql:host=$host;dbname=$dbname\", $user, $pass); $start_date
Do not put quotes around params:
$STH = $DBH->prepare("SELECT * FROM `table` WHERE `start_date` BETWEEN :start_date AND :end_date");
Don't wrap the values with single quote.