function getRowsArray($sql){
$this->mysql_query_rst($sql);
if (mysql_errno()==0){
while ($row=mysql_fetch_array($this->result,MYSQL_ASSOC)){
$this->rowsArray=$row;
}
return $this->rowsArray;
}表里有两条数据
问题:
$row 两条数据 都已经 提取出来了
$row 赋值给 $this->rowsArray
而,为什么 $this->rowsArray 返回值 是 单条数据
while读第二条还是赋值给$this->rowsArray
那么返回$this->rowsArray当然只有最后赋值那个了