Answers for "close mysql connection"

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

Browse Popular Code Answers by Language