You shouldn't have the semi-colon before the "or die", it should go at the very end, like so:
$dbconnection=mysql_connect("localhost", "username", "password") or die (!$dbconnection);
By the way, I hugely recommend using
Notepad++ (freeware, of course) to write your scripts. It offers things like colour coding, highlighting of related brackets, etc. Very useful.