if I do this:
echo date("y-m-d h:i:sa", strtotime('+24 hour'));
it works as expected. But I am trying to add 24 hours to the date and time stored in the database which isn't working.
I have tried something like:
$register_date = $row['register_date'];
echo $register_date, strtotime('+24 hour');
but that just shows me the registered date from the database and a unix timestamp.
I am pretty stumped on this one.
Should I just use an integer instead of date/time? The user has 24 hours to activate their account otherwise they will need to generate a new code.