Reputation: 18103
I have:
$lastActivationDelay = time() + 8;
if($lastActivationDelay<$last_activation)
right now, not working properly.
What i want to do is if you try to enter the page, and
if $last_activation is under the $lastactivationdelay time, then echo false, else true
.
So if eight seconds from now is over $last_activation, then true, if its under, then false
.
Upvotes: 0
Views: 241
Reputation: 7637
Assuming $last_activation
exists in the past, your comparison is backwards.
if ($lastActivationDelay > $last_activation) { echo 'too soon';
}
Upvotes: 2