I have a mysql database of users which has a subscription expiry field (sub_expire) which is timestamp format at present and also another field (active) which is enum yes or no which is yes allows login and if no refuses login.
How do I using php check if the subscription expiry date has either been reached or has passed upon a user attempting to login and then update the active field to no so that the user is unable to login.
Many thanks in advance