好长时间不用了好像是
$row=mysql_fetch_row($result);
你自己试一下吧!

解决方案 »

  1.   

    $row=mysql_fetch_row($result);是提取一行记录!!
    mysql_fetch_array是一个数组类型
      

  2.   

    用mysql_num_rows($result);
    mysql_fetch_array只返回结果集中的一行关联数组而矣;如果你用select count(*),那么可以用mysql_fetch_array来获得总条数
      

  3.   

    当然用select count(*) as total from table
    把所有的东西都拿出来太可怕了
      

  4.   

    <1>$count=mysql_num_rows($result);
    ................................
    <2>$count=0;
    while($row=mysql_fetch_object($result))
    {
    $count++;
    }
      

  5.   

    你说的$num是字段数,总数是select count(*) as total from table,拿出来的是总数
      

  6.   

    select count(其中任意一列名) from 表 where 条件~~~