src/Mysql.php
public function connect()
    {
        $arrParams = [
            'mysql:host='.$this->host,
            'dbname='.$this->database,
            'charset='.$this->charset,
        ];
        
        $this->db = PdoSingleton::getInstance()->getConnection($arrParams, $this->username, $this->password);
    }
public function connect()
    {
        $arrParams = [
            'mysql:host='.$this->host,
            'dbname='.$this->database,
            'charset='.$this->charset,
        ];
        
        $this->db = PdoSingleton::getInstance()->getConnection($arrParams, $this->username, $this->password);
    }
public function connect ( ) { $ arrParams = [ 'mysql:host=' . $ this -> host , 'dbname=' . $ this -> database , 'charset=' . $ this -> charset , ] ; $ this -> db = PdoSingleton :: getInstance ( ) -> getConnection ( $ arrParams , $ this -> username , $ this -> password ) ; }
Connect to MySql DB using constant params
Connect to MySql DB using constant params