You just forget one thing !
Where is the database name ?
How to fix that :
<?php
$host = "localhost";
$user = "root";
$pass = "root";
$db = "Your Data Base Name";
$con= mysql_connect($host , $user, $pass) or die('Unable to connect');
mysql_select_db ($db,$con) or die('Unable to select');
?>...