One day this week I had to many connections to my mysql.. it was set up to handle max 100 connections. Someone told me to use mysql_close or something like that..? but.. when should I use mysql_close?? and should I use mysql_connect or mysql_pconnect??
There is only one way to deal with the max connections limit problem, and that is to increase the max number of connections that your database server will allow.