daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest Jun 18th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function db_connect ($db_server="",$db_user="",$db_user_pass="",$db_name=""){
  2.    
  3.         $connection= @mysql_connect($db_server,$db_user,$db_user_pass);
  4.    
  5.         if (!$connection) {
  6.        
  7.             return false;
  8.        
  9.         }
  10.    
  11.         if (!mysql_select_db($db_name)){
  12.            
  13.             return false;
  14.            
  15.         }  
  16.        
  17.         return $connection;
  18.     }
  19.    
  20.     db_connect(DB_SERVER,DB_USER,DB_USER_PASS,DB_NAME);
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