function Connect($Database= "", $Host ="", $User = "", $Password = ""){
if ($Database==""){
$Database = $this->Database;
}
if ($Host==""){
$Host= $this->Host;
}
if ($User==""){
$User= $this->User;
}
if ($Password==""){
$Password=$this->Password;
}
if($this->Link_ID=@mysql_connect($Host,$User,$Password)){
if(@mysql_select_db($this->Database,$this->Link_ID)){
return true;
}else{
$this->Halt("你选择的数据不存在!");
return false;
}
}else{
$this->Halt("数据库主机连接失败");
return false;
}
}