PHP should automatically use the same connection and close the connection as soon as the page finishes loading. I hate to keep passing the buck, but I think the server isn't releasing the connections properly. You could add mysql_close() statements to the end of your pages to explicitly close the conneciton, but that really shouldn't be necessary if the site is running properly.