I have a script that for the most part interacts with one mysql database.
However, when a certain function is called, I am now wanting to do an if{}
and in the case of true
connect to another mysql database and update a table. After this, other queries will be run on the original database.
What's the proper and most efficient way to do this?
Is't the way below?