K, ulf.. just now i have edited the post.. please check it and clarify me
Joined: Mar 22, 2005
There are apparently two problems: one is that you write "mysql.error" where it should probably be "mysql_error". The other is that user "bala" apparently does not have access right to the DB from localhost. Make sure that is allowed, and also try "127.0.0.1" instead of "localhost".