SHARE
TWEET

Untitled

a guest Jun 7th, 2017 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. class connector {
  4.  
  5.     private $_dbhost, $_dbuser, $_dbpass, $_dbase;
  6.  
  7.     public function  __construct() {
  8.         $this->_dbhost = "localhost";
  9.         $this->_dbuser = "root";
  10.         $this->_dbpass = "cake";
  11.         $this->_dbase = "botsy";
  12.         $this->connect();
  13.     }
  14.  
  15.     private function connect() {
  16.         $db = mysql_connect($this->_dbhost, $this->_dbuser, $this->_dbpass);
  17.         mysql_select_db($this->_dbase, $db);
  18.     }
  19. }
  20.  
  21. $con = new connector();
  22.  
  23. ?>
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