during login you might not given any username
the syntax is
mysql_connect($dbhost,$dbuser,$dbpass);
you can try the following example but I am not sure whether it will work or not as I don't know ur username & password.
$handler=mysql_connect('localhost','root','');
if($handler) echo "Connection success"; else die(mysql_error());
Best Regard:
Md. Zakir Hossain (Raju)
www.rubd.net
www.xenex.rubd.net
www.forum.rubd.net