title: PHP Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /var/www/html/index.php on line 14
body: <p>PHP Fatal error:  Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /var/www/html/index.php on line 14</p>
  
  <pre><code>&lt;?php
      ini_set('error_reporting', E_ALL);
      ini_set('display_errors', 1);
      include 'header.php';
      include 'dbh.php';
  
  ?&gt;
  
  &lt;?php
      if (isset($_SESSION['id'])) 
      {
          echo "you are logged in&lt;br&gt;";
  
          if (isset($_SESSION['active']==0))
              echo "your account is not activated&lt;br&gt;";
          else
              echo "you are logged in and activated&lt;br&gt;";
      }
      if (!isset($_SESSION['id'])) 
      {
          echo "you are not logged in&lt;br&gt;";
      }
  ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>i'm relatively new to php and i'm having a problem with my code, i want to make sure that if active in my database is set to 0 then it will echo that they aren't activated. if you see anymore mistakes in my code then please let me know.</p>
  
  <p>thanks</p>