Connection Close in Php mysql

Connection Close in Php mysql

When the script ends then automatically connection will be closed. To close the connection before, use the following:

MySQLi Object-Oriented:

$conn->close();

MySQLi Procedural:

mysqli_close($conn);

PDO:

$conn = null;

Post Your Comments & Reviews

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

*

*