I have to many queries which are executed on a single API hit, however since these there queries on different DB , i need to close the connection once the query is executed.
When i use the $conn->disconnect(), any further queries should not be executed.
However the connection is not closed and the further queries are executed.
I have to many queries which are executed on a single API hit, however since these there queries on different DB , i need to close the connection once the query is executed.
When i use the $conn->disconnect(), any further queries should not be executed. However the connection is not closed and the further queries are executed.
Please find the sample code for below.
`<?php
try { ini_set('display_errors', 1);
} catch (mysqli_sql_exception $ex) { $data = array("error" => $ex->getMessage()); echo "Filepath:$file, Status:ERROR : $query , Response:" . $e->getMessage(); $conn->disconnect(); }
`