daily pastebin goal
24%
SHARE
TWEET

sql oop

a guest Mar 20th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. class SQL
  3.     {
  4.         private $svr = "localhost";
  5.         private $usr = "root";
  6.         private $pwd = "";
  7.         private $db = "buchjoin";
  8.        
  9.         public function __construct()
  10.             {
  11.                 $svrU = $this->svr;
  12.                 $usrU = $this->usr;
  13.                 $pwdU = $this->pwd;
  14.                 $dbU = $this->db;
  15.                 $con = new mysqli($svrU, $usrU, $pwdU, $dbU);
  16.                
  17.                 printf("Host info: %s\n", $con->host_info);
  18.                
  19.             }
  20.     }
  21. $a = 0;
  22. $a = new SQL;
  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