I am new in the PHP coding. Guys please tell me about the connectivity of database. I don't know about that...
As OP changed title and content of post - my reply is not relevant
As you mention wordpress you might need to look at some wp faq if it is something special.
Please post the error, if the above does not help.
@Kaspar Okk . First i will try again and then if again the error will shown then i will tell you about that....and thank you for helping me..