Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DB
- {
- function __construct()
- {
- $this -> host = access :: $host;
- $this -> user = access :: $user;
- $this -> pass = access :: $pass;
- $this -> db = access :: $db;
- $this -> conn = null;
- }
- function getConnection()
- {
- $this -> conn = mysqli_connect($this -> host, $this -> user, $this -> pass);
- if($this -> conn)
- {
- mysqli_select_db($this -> conn,$this -> db);
- return true;
- }
- else
- {
- mysqli_error($this -> conn);
- return false;
- }
- }
- public static function mysql_fetch_full_result_array($sql)
- {
- if(empty($sql)) { return false; }
- $result = mysqli_query(NEED CONNECTION,$sql);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement