I am trying to make an automated expiration for users who purchase membership on my website after one month (2419200 seconds)
However when I change the row's date it doesn't appear to work. I have tried wrapping the time function around different areas, even disabling it and I seem to have an issue with it working.
buyDate parameter is part of an object in my SQL database. (unix time integer) Any help would be appreciated.
<?php
if(time($membershipExpire->buyDate) <= time($membershipExpire->buyDate + 2419200)){
die("Your membership has expired. Please contact someone to remove your membership in order to continue playing.");
}
?>