Can anyone please help me understand why I am getting this error when there is about 20 people on the site at one time.
The only thing I can think is that I have the db connection intialized in a include file (includes/header.php) and the db connection closed in an include file (includes/footer.php)
Should this still work, I dont see how I can be going over the max connections?
PHP closes any connections it made at script conclusion anyway, so this isn’t likely the issue unless you are opening a new connection per query and not closing them until your done with all of them.
Connections to the Database. Just wanted to make sure that even though the open and close connection statements are being “included” on a page, that they both should still function.
Connections to the db or connections to the server? In either event, not necessarily a PHP problem - you might get better information from the server management forum.