This is mysql Connection code.
$db_host = "localhost";
$db_name = "propstor_image";
$db_user = "root";
$db_pass = "";
try{
$db_con = new PDO("mysql:host={$db_host};dbname={$db_name}",$db_user,$db_pass);
$db_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e){
echo $e->getMessage();
}?>
When I try to Close mysql connection by using mysql_close($db_con);
It shows following error
" mysql_close() expects parameter 1 to be resource, object given in C:\wamp\www\property\member\include\login.php on line 57" .Please can you help me how to close mysql connection.