Jump to content

freesouljah

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

freesouljah's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. lol....I need it to retry [i]only[/i] if there is a problem connecting (ie 'too many connections)...leave it to me to have to clarify my clarification...  :-X thank you for your patience and help 8)
  2. original post edited for clarification. mainly I need it to safeguard from a 'too many connections' error.
  3. thanks for the speedy response  ;D this works, but what I need it to do is to only attempt to retry connection if the first and/or subsequent connections fail...I guess I should have been a bit more clear... thanks 8)
  4. okay...I am trying something that should be simple...but I can't get it to work...I want this php script to make sure it connects to mysql...for instance if there are too many connections, it retries (maybe 5 times, with a 1 second lapse between, and then stops if it cannot connect at that point): [code] function dbConnect ( ) { if ($this->dbconnection == "") { $this->dbconnection = mysql_connect($this->dbhost, $this->dbuser, $this->dbpass, true); mysql_select_db($this->dbname, $this->dbconnection); print (mysql_error($this->dbconnection)); } }[/code] I looked around and fiddled with some stuff using tips/ideas from [url=http://gallery.menalto.com/node/39770]here[/url] and [url=http://www.aota.net/forums/showthread.php?postid=28603#post28603]here[/url]...but I can't get it to work for me... can you help a brother out? thanks 8)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.