Forum Moderators: coopster
I then pass that connection to any functions that need it.
I leave this connection open through the whoel script.
The proper way to do it would be to close it at the end of processing but often I don't even worry about it since, as you said, they are all closed at the end of script execution.