Answers for "how to close connection using pdo"

PHP
0

pdo close connection

$conn=new PDO("mysql:host=$host;dbname=$dbname",$user,$pass);
    // If this is your connection then you have to assign null
    // to your connection variable as follows:
$conn=null;
    // By this way you can close connection in PDO.
Posted by: Guest on September-09-2021
0

close connection pdo

$pdo = null;
Posted by: Guest on January-26-2021

Browse Popular Code Answers by Language