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?
Here is my code
<?php
if(isset($_POST['data'])){
//Mysqli Query
exit;
}else{
//Other mysqli query
}
mysqli_close($connection);
?>