Jump to content


Photo

Need to close it


  • Please log in to reply
2 replies to this topic

#1 OLM3CA

OLM3CA
  • Members
  • PipPipPip
  • Advanced Member
  • 52 posts
  • LocationCyprus

Posted 24 August 2006 - 03:53 PM

Do I always need to close mysql connection after the queries ??
I have an error " too many mysql connections" After this,I would like to ask it :)
I'have not close any mysql connections.
İf this is the problem of that error OK but if it is not What may be the problem ?

AMD rather than Intel , PHP rahter than ASP

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 24 August 2006 - 04:38 PM

If yoiu use persistant connections (mysql_pconnect) yes you do. However if you are not you shouldn't have to close the database connections, as PHP does this for you at the end of parsing the script.

You or your host may set a max connections setting too low.

#3 OLM3CA

OLM3CA
  • Members
  • PipPipPip
  • Advanced Member
  • 52 posts
  • LocationCyprus

Posted 24 August 2006 - 04:47 PM

Thanx wildteen88
AMD rather than Intel , PHP rahter than ASP




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users