第二行 while
while($line_top = mysql_fetch_array($result_top, MYSQL_ASSOC)){ 你取的值存到 $line_top 了
打印$line当然没东西

解决方案 »

  1.   


    正解,把:
    while($line_top = mysql_fetch_array($result_top, MYSQL_ASSOC)){
    echo $line["picture_id"];
    if($i%2){
    echo " <tr>";;
    }
    echo " <th height=\"2\" scope=\"row\">";
    echo " <a href=\"admin_user_show_picture.php?picture_id=".$line["picture_id"]."&auditing=1\"> <font color=\"red\">".$i.".".$line_top["picture_name"]." </font> </a> </th> <td> &rarr;票数统计结束为".$line_top["vote_num"]." </td>";
    if($i%2==0){
    echo " </tr>";

    改为:
    while($line_top = mysql_fetch_array($result_top, MYSQL_ASSOC)){
    echo $line_top["picture_id"];
    if($i%2){
    echo " <tr>";;
    }
    echo " <th height=\"2\" scope=\"row\">";
    echo " <a href=\"admin_user_show_picture.php?picture_id=".$line_top["picture_id"]."&auditing=1\"> <font color=\"red\">".$i.".".$line_top["picture_name"]." </font> </a> </th> <td> &rarr;票数统计结束为".$line_top["vote_num"]." </td>";
    if($i%2==0){
    echo " </tr>";