我判断了
这段就是啊
if($row==$username)
能帮我仔细看看吗?

解决方案 »

  1.   

    while($row=mysql_fetch_array($result,MYSQL_ASSOC)){
       foreach ($row as $col_value){
       if($row==$username)
      echo "<meta http-equiv=\"refresh\" content=\"10;URL=error.php?id=7\">";    
      
       }
       break改为exit();
       } 
    试一下。你的程序只是结束了循环。然后就接着下面的处理。
      

  2.   

    while($row=mysql_fetch_array($result,MYSQL_ASSOC)){
       foreach ($row as $col_value){
       if($row==$username)
      echo "<meta http-equiv=\"refresh\" content=\"10;URL=error.php?id=7\">";    
      
       }
       break改为exit;
       } 
    试一下。你的程序只是结束了循环。然后就接着下面的处理。