How to return TRUE when an account was created more than 30 days ago?
I have the following date:
$udata['joined']; – record date in time():
I tried like this
`If($udata['joined'] = strtotime ("+30 days", time())){
return true;
}`
Any idea why it’s not working correctly?
Return empty.
>Solution :
I guess you want
If timestamp is more than (or exactly) 30 days ago
if ($udata['joined'] <= strtotime("-30 days", time()) {
return TRUE;
}
(you need to substract 30 days from now and remove all syntax errors)