dips255 0 Light Poster

hi

i have query about database connection object

i have made a function to send sms and used it on several pages. Now i want to keep track of no. of sms used. however i have not opened database connection on all the pages where i'm calling this function. so i want to detect whether a connection is available or not and use the object if available.

any help?

regards