01-10-2019, 10:35 AM
Ahh. Because we're getting the days of the week differently.
Under global $db; add the line
$day = strtolower($day);
Since the array of days are capital and the database uses lowercase, it was throwing it off.
Under global $db; add the line
$day = strtolower($day);
Since the array of days are capital and the database uses lowercase, it was throwing it off.