Create Database config

mysql_connect("localhost","root","");
here localhost->hostname;
     root->username
     ""->password can be put or left blank your choice
$con_res is a variable holding mysql_connect("localhost","root","");

Then we can have an if statement to add extra secured level of clean code.
If !$con_res then die.

Similarly , mysql_select_db("adhome")

here mysql_select_db selects database any database name can be put provide you actually created one.

And again if(!$select_res) i.i if not found then die.