你不是写了查询 cha() 方法了么

解决方案 »

  1.   

    //查询
    public function cha()
    {
    $sql="select * from table;";
    $tt=mssql_query($sql,$this->link);这个就是。
      

  2.   

    sql语句不需要加分号吧
      

  3.   


    //查询
    public function cha()
    {
    $sql="select * from table";
    $tt=mssql_query($sql,$this->link);$arr=array();
    while ($row=mssql_fetch_array($tt))行一下
    {
    $arr[]=$row; 
    }
    return $arr; 
    }
    试试,你其实已经写了。