i want to close an opened connection using mysql_close() but when i go at my server and check the amoutn od opened connections in my server the connections are increased! for example i have 100 opened connections in my mysql data base
and i have a page with this code:
<?php include "configa/configuration.php";
$con = mysql_connect($sql['host'],$sql['user'],$sql['password']);
if ($con) echo "connected<br>";
mysql_close($con);
if (!$con) echo "disconnected";
?>
every time i refresh page a new connection is initialized and only connectid shows up in page. what could possibly be wrong
in this way with 1000 page refresh my sql server gets disconnected