I have a file config.php
<?php
$dbhost = "*****";
$dbname = "*****";
$dbuser = "*****";
$dbpassword = "*****";
$connect = mysql_connect("$dbhost","$dbuser","$dbpassword");
mysql_select_db("$dbname",$connect);
mysql_query("SET NAMES 'utf-8'");
?>
And i have file insert.php with inserting form values into MySql. At the end of this file i am trying to close database connection with:
mysql_close($connection);
but it gives me error, please advise.
P.S: I am very new to php so please don't blame.
$connectand$connection?