SqlHelper::__construct PHP Метод

__construct() публичный Метод

public __construct ( )
public function __construct(){

$this->conn=mysql_connect($this->host,$this->username,$this->password);
if(!$this->conn){
die("连接失败".mysql_error());
}
mysql_select_db($this->dbname,$this->conn);
}

Usage Example

Пример #1
0
 public function __construct()
 {
     parent::__construct('replaycomment');
 }
All Usage Examples Of SqlHelper::__construct