skip to Main Content

What would be my condition if the users membership date is already passed or expired? and I have these kind of code: – PHP

<?php //These came from my database $_SESSION['dateOfMembershipEnds'] = $row['dateOfMembershipEnds']; if(empty($email)){ echo '<script>alert("Email is required!")</script>'; }else if(empty($password)){ echo '<script>alert("Password is required!")</script>'; }else if(strtotime($_SESSION['dateOfMembershipEnds']) >= date("Y-m-d")){ echo '<script>alert("Your Subscription Mr/Ms: '.$_SESSION['username'].' is already expired") </script>'; ?> I am expecting in my code…

VIEW QUESTION
Back To Top
Search