title: Is it okay to Add an exit; in if else statement before mysqli_close()?
body: <p>is it okay to add an exit; in the if-else statement with mysqli_close(); at the end of the Line of code? The database connection will be closed?</p>
  <p>Here is my code</p>
  <pre><code>&lt;?php
  if(isset($_POST['data'])){
  //Mysqli Query
  exit;
  }else{
  //Other mysqli query
  }
  mysqli_close($connection);
  ?&gt;
  </code></pre>