class clsConnection{ var $c; var $h = "202.29.105.4"; var $u = "mis"; var $p = "LetMeIn"; var $db = ""; function clsConnection($dbServer="", $dbName="", $dbUser="", $userPassword=""){ $this->h = ($dbServer=="") ? $this->h : $dbServer; $this->db = ($dbName=="") ? $this->db : $dbName; $this->u = ($dbUser=="") ? $this->u : $dbUser; $this->p = ($userPassword=="") ? $this->p : $userPassword; $this->Connect(); } function Connect(){ $this->c = mysql_connect($this->h, $this->u, $this->p); if (!$this->c) { die("
à¡Ô´¢éͼԴ¾ÅÒ´ |
---|
äÁèÊÒÁÒöµÔ´µèÍ°Ò¹¢éÍÁÙÅä´é |