Attention plzzzzzzzz!!!!!!! hunter.gif

i try to connect with mysql with the php script below..
but still have problem.. coz i couldn't connect it yet..


<?php
$server ="localhost";
$username ="username";
$password ="password";
$dbname ="site_dbname";
mysql_connect($server,$username,$password) or die ();
mysql_select_db($dbname) or die ();

?>


the username and database name both is less then 16 char.

and for the $server which i filled with 'localhost' is this wrong??

can anybody tell me where the mistake is?????????

... Help ...