actually I thought if the refernce is there(if I can print the reference with some hexadecimal code) the database connection is there.
I am sort of a beginner and I didn't know that. And there's a high posibility that it is the place where I went wrong.
Can you please suggest me a way to check whether the database connection is live or not.
Thanks.