a.php<?php
class a
{
    public function uidRst($sql){
if($this->conn == ''){
$this->init_conn();
}
@mysql_query($sql);
$this->rowsNum = @mysql_affected_rows();
if(mysql_errno() == 0){
return $this->rowsNum;
}else{
return '';
}
}
}
$conne=new a();
?>b.php
<?php
include ('.\a.php')
global $name;
global $pwd;
class{
public static function Insert()
{
$name="ww";
$pwd="re";
$sql="insert into userinfo values($name,$pwd)";//此处加断点进行调试报这个错误Call to a member function uidRst() on a non-object
if($conne->uidRst($sql)==1)
{
return 1;
}
else
{
return 2;
}
}
}应该怎样调用uidRst($sql)方法呢
?>