Answers for "how to close a database in mysql"

PHP
3

how to close mysql connection

// Creating connection
$conn = mysqli_connect("localhost", "username", "password");
// closing connection
mysqli_close($conn);
Posted by: Guest on July-03-2021
1

close mysql connection in php

// OOP
$conn->close();

//Procedural
mysqli_close($conn);
Posted by: Guest on May-28-2020

Code answers related to "how to close a database in mysql"

Browse Popular Code Answers by Language