Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Function{
- private $host;
- private $user;
- private $pass;
- private $db;
- public $conn;
- public function __construct($host,$user,$pass,$db) {
- $this->host = $host;
- $this->user = $user;
- $this->pass = $pass;
- $this->db = $db;
- $this->conn = new mysqli($this->host, $this->user, $this->pass, $this->data);
- }
- public function query($query){
- return $this->conn->query($query);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement