Im still trying to work this one out but what i would like to do is send an email if an alert is present. but not resend the email on every page refresh where the alert is still present.
so i was thinking of using something like $_SESSION to record when the last email was sent and only send another email if the current time is greater than 10 mins from the $_SESSION.
How can i record the time into the session variable in a format which i can use to compare with the current time?
and how will i compare?