my website using php activerecord to handle the sql
and there’re three field inside the db:
joindate,status,activatecode
all registered member must activated in 24 hours,otherwise account will be deleted
how to write the php code to do this function?
the joindate now using php date(‘Y-m-d’).
also the code can automatic work without manually launch
In order to get an accurate 24 hr deactivation, you will need to change the
joindatesql field to type “datetime” which will also hold the time. Then use this code: