Skip to content

PHP code snippet – How to close mysql connection?

// Creating connection
$conn = mysqli_connect("localhost", "username", "password");
// closing connection
mysqli_close($conn);
See also  How to remove duplicate item from arraylist in Java using comparator?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.