I'm trying to search for records between a certain date and am having problems with my where clause.
startdate and enddate are fields in my database.
$today = date('Y-m-d');
require_once "/admin/lib/viewer_functions.php";
list($home_tilesRecords, $home_tilesMetaData) = getRecords(array(
'tableName' => 'home_tiles',
'where' => 'startdate <= "$today" AND enddate >= "$today"',
));
I'm not getting any records selected at all.
Any help would be very appreciated.