hi,
I have some code that deals with sending out reminders for appointments due the following day.
So if today is the 21/3 then only reminders for appointments due on the 22/3 should be sent.
Currently this isn't happening...
If reminders are sent on 21/3 at 9.50 am, my code adds 24 hours to this datetime and sends reminders due for all
appointments that fall bewteen 21/3 9.50am and 22/3 9.49 am.
What I want to do is simply send all reminders for appointments that are on the 22/3 exclusive of time.
I'm not sure how do this in php, which uses the unix datetime format to mildy complicate issues
anhy help or solutions would be massive, thanks.
$days = time() + (1 * (60 * 60 * 24));
$apts = $db->fetch_all('status = 1 AND time > ? AND time < ?', array(time(), $days));