$this->conn = mysql_connect($this->db_host, $this->db_user, $this->db_pwd) ;
if ( !($this->conn) )
{
die('Could not connect:'.mydsql_error('连接出错')) ;
}
拼写错误
if ( !($this->conn) )
{
die('Could not connect:'.mydsql_error('连接出错')) ;
}
拼写错误
'noco '@'14.210.115.31'
和
'noco'@'14.210.115.31'
的区别
显然是多了空格、回车、换行之类的字符你是怎么读取 ini 文件的?
$this->db_host = fgets($openfile) ;
$this->db_user = fgets($openfile) ;
$this->db_pwd = fgets($openfile) ;
$this->db_user = trim(fgets($openfile)) ;
$this->db_pwd = trim(fgets($openfile)) ;