I do not what the (...) mean so I will just answer what I can.
CODE
<?php
mysql_connect("localhost", "user", "password") or die(mysql_error());
echo "Connected to MySQL<br />";
?>
In the above code, we are establishing a connection to MySQL and dispalying a nice friendly message to tell us we have a connection.
CODE
<?php
mysql_connect("localhost", "user", "password") or die(mysql_error());
echo "Connected to MySQL<br />";
mysql_select_db("test") or die(mysql_error());
echo "Connected to Database";
?>
However, in this piece of code, we are connecting to MySQL AND a Database. This is needed if your application requires a database to be present.
Hope this helps.
Jacob.