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  Python code snippet - How to create list ?

Leave a Reply

Your email address will not be published. Required fields are marked *

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