Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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.
Comment

close connection pdo

$pdo = null;
Comment

pdo close connection

$this->connection = new PDO();
$this->connection->query('KILL CONNECTION_ID()');
$this->connection = null;
Comment

PREVIOUS NEXT
Code Example
Php :: create laravel project with preferred version : 8 
Php :: how to create migration in laravel 
Php :: php server function 
Php :: laravel auth 6 
Php :: laravel default string length migration 
Php :: every wordpress page redirect to localhost ? 
Php :: woocommerce cart length button shortcode 
Php :: generate slug on create laravel 
Php :: get object tyhpe php 
Php :: custom laravel auth 
Php :: phone number validation, laravel 
Php :: php get function name 
Php :: what is the difference between static and dynamic websites? 
Php :: calculate days of a month 
Php :: Target class [BannerController] does not exist. 
Php :: how to change php version in cpanel 
Php :: Filtering Eloquent collection data with filter 
Php :: drupal 8 twig add id 
Php :: get next month first day php 
Php :: how to remove annoying plugin notification in wordpress 
Php :: htmlspecialchars in php 
Php :: how to alias table name in laravel model 
Php :: searchable dropdown laravel blade 
Php :: PHP min() and max() 
Php :: Instalar Lamp server en Ubuntu 
Php :: remove gutenberg cpt 
Php :: execute php in terminal 
Php :: foreach ph 
Php :: write php online 
Php :: laravel vue error 500 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =