Your syntax is wrong, we can all edit the code but you will not understand why. The error is telling you a problem is occuring at line2, so the error is line 2 or above. You need to look at the clues the error is telling you. Also any php editor would highlight this synatax as incorrect, what one are you using?? In this case it is line 1. Please look at the structure for creating a mysql connection.
mysql_connect("localhost", "admin", "1admin") or die(mysql_error());
echo "Connected to MySQL<br />";
BTW this method is depreciated, take a look at mysqli if you are just starting out.