묻고답하기

수정 부분에서 왜 안되는 지 모르겠습니다...
수정을 하면 성공이라는 경고창이 뜨는데.. 리플래쉬 된것을 보면 수정 되지가
않아 있습니다.
지발... 도와 주십시요


<?
include "connect.php";
?>
<?
if($mode == 'del'){
    if(!$sno){
        echo" 없으니 그냥가라";
    }
   $del = mysql_query("delete from top where no='$sno'"); // 변수가 없다. 그래서삭제가 안된다.
   if($del){
      echo "<script>window.alert('성공')
      </script>";
      echo" <meta http-equiv='refresh' content='0; URL=pro-edit.php'>";
      exit;
  }else {
      echo "<script>window.alert('실패');history.back();
      </script>";
  }
}

if($mode == 'edit'){
    $query = "select name, content from top where no='$sno'";
    $result = mysql_query($query);
    $row = mysql_fetch_array($result);


?>

<html>
<head>
<link rel="stylesheet" type="text/css" href="type.css">
<body>

<form name="form" method="post" action="pro-edit_del.php?mode=editok&sno='$sno'">
<table border="1" cellspacing="0" cellpadding="3" width=500 bordercolordark="#ffffff" bordercolorlight="#919191"
style="color:#414141" align=center>
<tr>
<td align=center bgcolorw=#acd6ff> <b><center>문서 수정</center> </b></td>
</tr>
</table>
<table width="500" border="1" align=center cellspacing="0" cellpadding="3" width=500 bordercolordark="#ffffff" bordercolorlight="#919191">
<tr>
<td width="100" bgcolor=#acd6ff>이름</td>
<td width="400"><input type=/"text/" name=/"name/" size=/"10/" maxlenght=/"8/" value=<?echo $row[name] ?>> </td></tr>
<tr>
<td width="100" bgcolor=#acd6ff>비번</td>
<td><input type="password" name="pass" size="10" maxlenght="10"></td></tr>
<tr>
<td width="100" bgcolor=#acd6ff>내용</td>
<td><textarea name="content" rows="3" cols="50" wrap="virtual"><?echo $row[content] ?></textarea></td></tr>
</table>
<br>
<table width=500 align=center>
<tr>
<td align=center>
<input type=hidden name="no" value="<?echo $sno?>">
<input type=submit class=button value="수정"><input type=reset value="취소">
</td>
</tr>
</table>

</form>
</body>
</html>

<?
}
if ($mode == 'editok'){
     if(!$sno){
        echo " 없으니 그냥가라";
    }
    $editok = mysql_query("update top set name='$nameis' , content='$con' where no='$sno'");
   if($editok){
             echo "<script>window.alert('성공')</script>";
             echo "<meta http-equiv='refresh' content='0; URL=pro-edit.php'>";
             exit;
  }else {
      echo "<script>window.alert('실패');history.back();
      </script>";
  }

}

?>
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
花穗 포인트 관련 질문입니다.  
어이쿠 핵교 홈페이지인데 업데이트 했다가 지금 난감해요 ^_^ 도와주세요. [2] file 2009.01.15 by 궁금
kim님 업데이트 한 후 오류가 있습니다. 도와주세요. [2] 2009.01.15 by 만쓰별(정만)
만쓰별(정만) 글읽기나 글쓰기 등 글 읽고 쓰고 할때 위에 메뉴바까지 새로고침이 되는데요.. [1] 2009.01.15 by 만쓰별(정만)
만쓰별(정만) xe에 홈페이지 2개 이상 넣기.. [7] 2009.01.15 by 만쓰별(정만)
파란리 제로보드4 게시판 로그인폼 쪽.. [3] file 2009.01.15 by 〃타리★
Sunny_love 회원가입, 비밀번호아이디찾기 가로사이즈 95% 수정법. [1] 2009.01.15 by 만쓰별(정만)
ibluecan 페이지 모듈에 작성 한 내용은 어디에 저장 되나요? 긴급! [6] 2009.01.15 by ibluecan
김문수462 BNU님 플래너 질문 - 마우스 이벤트? 끄고 싶습니다~~ [1] file 2020.03.14 by BNU
헬프미 관리자 메일 기능 되시는분 있나요? [1] 2009.01.15 by 만쓰별(정만)
할배/정한교 마이그레이션후 정리작업 [1] 2009.01.14 by 백성찬
UREN putty문제요ㅠㅠ [3] 2009.01.14 by 넓은바다
섬사람 게시판 제목에서 미리입력할려면.. [3] 2009.01.14 by 최성태274
David Sung [긴급] 댓글 모듈 부분이 너무 늦게 로딩됩니다. [2] file 2020.03.14 by BNU
sakurastorm 씨x처럼 리플 달아야 게시물 내용 보이게 할 수 있나요?? [4] 2009.01.14 by sakurastorm
시아685 xe업그레이드후files폴더를 재업로드 해도될까요? [2] 2009.01.14 by 샤즌쓰
이정민859 타이틀바를 없앴더니 글씨가 겹쳐 나옵니다  
윤이나 어머니가 비밀번호를 잊어버리셨는데...... [2] 2009.01.14 by 만쓰별(정만)
위젠 암호에 대해서 궁금합니다. [2] 2009.01.14 by 위젠
위젠 메인페이지를 로그인만 있게 하려면 어떻게 하나요? [4] 2009.01.14 by 위젠