HOME


Mini Shell 1.0
DIR: /home/islapiiu/sites/shiny/class/
Upload File :
Current File : /home/islapiiu/sites/shiny/class/Database.php
<?php

/**
 * Description of User
 *
 * @author  Sublime ยจ
 * */
class Database {

//    private $host = 'localhost';
//    private $name = 'gallnwxt_travelhelper';
//    private $user = 'gallnwxt_travelhelper';
//    private $password = 'sJqd3BLr3gmv!';

    private $host = 'localhost';
    private $name = 'islapiiu_shinysystem';
    private $user = 'islapiiu_main';
    private $password = 'Ue.t;FNgC?BG,Paf8V';

    public function __construct() {
        mysql_connect($this->host, $this->user, $this->password) or die("Invalid host  or user details");
        mysql_select_db($this->name) or die("Unable to select database");
    }

    public function readQuery($query) {

        $result = mysql_query($query) or die(mysql_error());
        return $result;
    }

}