sambrereton
New Member
I am wanting to hear what others think about this? Currently, I make a mysql database connection inside of a header type file that is then included in the top of every page of my site. I then can run as many queries as I want on that 1 open connection. IF the page is built from 6 files included and there is 15 different mysql queries, then they all would run on this 1 connection. Now sometimes I see classes that make multiple connections, like 1 for each query.Is there any benefit of using one method over the other? I think 1 connection is better then multiple but I could be wrong?