$row=$mysql->mm_fetch_array($rst)是把数据库中的一行返回成一个数组
$row是一个数组
你可以在循环里面print_r( $row)看看
$mysql是一个自定义的类,你应该可以找到这个类的定义的地方

解决方案 »

  1.   

    嗯,楼上正解
    fetch_array()的作用是奖取出的记录集中的记录存放到数组中
    mysql中的原型函数是array mysql_fetch_array($result)
    每次只能操作一条记录
    所以用while循环操作
    把上面的过程简单化一下就是
    $result=mysql_query($str_sql);
    while($row=mysql_fetch_array($result))
      {
         //此处的$row就是一个含有一条记录的数组,数组下标为字段名
          //如记录中如果有个字段为name那其值就是$row["name"];
         print_r($row);//查看$row的内容
      }
      

  2.   

    Hashtable ids = New Hashtable();
    Hashtable phone = New Hashtable();
    Hashtable start = New Hashtable();
    Hashtable typestr = New Hashtable();
    string ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa ;Password=sa ;Initial Catalog=test1;Data Source=192.168.10.250";
            System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection(ConnectionString);
            cn.Open();
            System.Data.DataSet ds = new System.Data.DataSet();
            System.Data.OleDb.OleDbDataAdapter da = new System.Data.OleDb.OleDbDataAdapter("SELECT * From worker  order by name;SELECT * From worker",cn);
    for(i=0;i<ds.tables[0].rows.count;i++)
    {
    ids.add(ds.tables[0].rows[i]['fid'],ds.tables[0].rows[i]['fid']);
    phone.add(ds.tables[0].rows[i]['fid'],ds.tables[0].rows[i]['fname']);
    start.add("start","<tr><td width='119' height='30' align='left' valign='top' class='p12b'>"+
                        ds.tables[0].rows[i]['fname']+":</td><td width='416' align='left' valign='top' class='p11c'>")
     typestr.add(ds.tables[0].rows[i]['fid'],start);
    .....
    }
    用datareader也可以,手写的,下面的我觉得你可以自己写了
      

  3.   

    http://topic.csdn.net/u/20080114/16/7d72c3e3-8340-43ce-99b1-96a4aca9bff8.html?seed=1183558599