Mysql
 sql >> Database >  >> RDS >> Mysql

PDO e MySQL 'tra'

Non racchiudere i valori con virgolette singole.

$STH = $DBH->prepare("SELECT * FROM `table` WHERE `start_date` BETWEEN :start_date AND :end_date");