//查询 public function cha() { $sql="select * from table;"; $tt=mssql_query($sql,$this->link);这个就是。
sql语句不需要加分号吧
//查询 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; } 试试,你其实已经写了。
public function cha()
{
$sql="select * from table;";
$tt=mssql_query($sql,$this->link);这个就是。
//查询
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;
}
试试,你其实已经写了。