title: Try & catch pdo close database connection
body: <pre><code>try{
      //PDO CONNECT DB, $db
  
  }catch(PDOException $e){die("ERROR"));}
  </code></pre>
  
  <p>I have a query user PDO connect to database.</p>
  
  <p>I use try &amp; catch, my question is if my query is error</p>
  
  <p>Do i need to close conncetion before <code>die();</code>? </p>
  
  <pre><code>}catch(PDOException $e){$db="NULL"; die("ERROR"));}
  </code></pre>