Question
Comparing dates
Hi there
I have a program setup to compare two dates and to email the admin user where appropriate.
Here is the code:
select *
from tusers
where DateDiff(NOW(),PASSWORDCREATED) < 1 AND
siteid = 'site1'
Basically I want to email the admin user at the end of the day if any users have registered for access to the site during the day.
When a person registeres the passwordcreated column is filled with a date. - the date (mySQL datetime field).
So I think the above query should work.
Thanks in advance for any feedback.
I have a program setup to compare two dates and to email the admin user where appropriate.
Here is the code:
select *
from tusers
where DateDiff(NOW(),PASSWORDCREATED) < 1 AND
siteid = 'site1'
Basically I want to email the admin user at the end of the day if any users have registered for access to the site during the day.
When a person registeres the passwordcreated column is filled with a date. - the date (mySQL datetime field).
So I think the above query should work.
Thanks in advance for any feedback.
