title: Membership Expiry System
body: <p>I need help making this expiry system work.</p>
  
  <pre><code>public function isMember(){
      $this-&gt;member = $this-&gt;pdo-&gt;prepare('SELECT expire FROM users WHERE username=:username');
      $this-&gt;member-&gt;bindParam(':username', $_SESSION['username']);
      if(strtotime(date()) &lt; strtotime($this-&gt;member-&gt;fetch(PDO::FETCH_ASSOC))){
        return true;
      } else {
        return false;
      }
    }
  </code></pre>
  
  <p>And then in the main dashboard it's running the following: </p>
  
  <pre><code>if($user-&gt;isMember() == false){
    header("Location: purchase.php");
  }
  </code></pre>