0
How do I maintain connection in many classes accessing data from mysql database?
1 Resposta
0
I had a job where i had to do this, and the best solution i found is to make an object, which is when created starts a connection. Instantiate it in your main class, then you can communicate with it from everywhere else.