SHARE
TWEET

Untitled

a guest Jan 17th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     mysql_debug(1);
  2.     dbhandle = mysql_connect(db_host,db_user,db_db,db_pass);
  3.     if(!dbhandle)
  4.     {
  5.         print("#Warning: Could not connect to MySQL Database!");
  6.         print("#Warning: Retrying...");
  7.         print("-----------------------------------------------");
  8.         dbhandle = mysql_connect(db_host,db_user,db_db,db_pass);
  9.         if(!dbhandle)
  10.         {
  11.             print("#Warning: Could not connect to MySQL Database!");
  12.             print("#Warning: Retrying...");
  13.             print("-----------------------------------------------");
  14.             dbhandle = mysql_connect(db_host,db_user,db_db,db_pass);
  15.             if(!dbhandle)
  16.             {
  17.                 print("#ERROR: COULD NOT CONNECT TO MYSQL-DATABASE!");
  18.                 print("-----------------------------------------------");
  19.             }
  20.         }
  21.     }
  22.     else if(dbhandle)
  23.     {
  24.         print("#Connected to MySQL Database.");
  25.         print("-----------------------------------------------");
  26.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top