I have a code which Creates a Database Connection as Follows.
$dbConn = new mysqli($dbHost, $dbUserName, $dbUserPasswrd, $database);
$strSQL = 'SELECT *
FROM Table_Name';
$stmt = $dbConn->prepare($strSQL);
$stmt->execute();
$stmt->close();
$dbConn->close();
I have created a php page where i call this code.
Now when I see the connections in mysql database using toad GUI it is showing 1 connection during the first time the page loads and count keeps on increasing when the page get refreshed.
1.Why the no of connections increase despite I have mysqli close at the end of code
2.Does using $dbConn->close() help in optimizing performace of DB by reducing no of unused connections
Please explain in brief so everyone can learn some.

Thanks for Reply