Answers for "pdo $stmt close"

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

Browse Popular Code Answers by Language