In reply to Re^3: how to put this db connection code into a function by Anonymous Monk in thread how to put this db connection code into a function by Anonymous Monk