刚才发现我贴在博客上的那段代码是有误的,现郑重变更如下:
if($db=mysql_connect( $host,$userName,$passwd))
应该变更成:
if($db=mysql_connect( $this->host,$this->userName,$this->passwd))
刚才发现我贴在博客上的那段代码是有误的,现郑重变更如下:
if($db=mysql_connect( $host,$userName,$passwd))
应该变更成:
if($db=mysql_connect( $this->host,$this->userName,$this->passwd))