all so every time I use my include('conn/conn.php'); which is my database connection. let's say I have an, if, statement is it correct if I say $conn->close(); after the else statement as shown below?
I mean it makes sense to me cuz I won't need to use the database connection anymore so I close it.
IF($something == true){
// do some code here related to the databse
}else{
$conn->close();
echo "something went wrong please try again";
}