Originally Posted by demon_vox
its very simple, you are using $this when you are not in an object context. $this represents an instance of your object, so, for example, it doesnt have a meaning if you use it in a static method.
If you can post just the code where it fails maybe we can guess some more.
$this->hd=mysql_connect($host,$user,$psw)or die("please try again later ！");
mysql_select_db($name, $this->hd ) or die ("please try again later ！");
As above $this will appear error,i am sure that the programme is no problem,because it running ok for many months! Since upgrade php to php5,the programme will make a mistake ,it's made me so confuse,I searched all the web about the problem,somebody said it's
a bug in the pear,isn't it??