prova cosi e vedi che ti stampa

$cns = @mysql_connect("localhost", "root", "password") or die(mysql_error());