in reply to Database connection checking.

Maybe a duplicate of Database connection checking.? The questions differ slightly ...