This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
It seems that you posted index.php twice, but not insert.php.
Joined: Aug 20, 2012
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".