I know how to make connections to databases, but how to I get a connection to the current DB? Essentially I want to run a query from the press of a button, then do some other stuff (mail something to email address that come out of the query).
Any help/ code snips much appreciated!
Any help/ code snips much appreciated!