Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <?php
  2.  
  3. class Function{
  4.  
  5. private $host;
  6. private $user;
  7. private $pass;
  8. private $db;
  9. public $conn;
  10.  
  11.  
  12. public function __construct($host,$user,$pass,$db) {
  13. $this->host = $host;
  14. $this->user = $user;
  15. $this->pass = $pass;
  16. $this->db = $db;
  17. $this->conn = new mysqli($this->host, $this->user, $this->pass, $this->data);
  18. }
  19.  
  20.  
  21.  
  22. public function query($query){
  23. return $this->conn->query($query);
  24. }
  25.  
  26.  
  27.  
  28.  
  29. }
  30.  
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement