묻고답하기

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


<?
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 남기남
콩양 프리웹하드 설치시.. Zend Optimizer 와 iconv 가 설치되어있는데도 파일목록을 가져올수 없다고떠요..ㅠ 아시는분 꼭 답변부탁드려요. [1] 2009.09.13 by 티하이
ПЁГО EX INSTALL 에 대해 알려주세여~ [2] 2009.09.12 by mc뷰
꽃미남임 질문시즌3:찬이S님의 도움으로 조금은 해결의실마리를 보고있음 XE프로그래머님 좀 도와주세요ㅜㅜ [6] 2009.09.11 by 꽃미남임
이런남 도움을 요청합니다. 사이트가 해킹 당해서 그런지... [3] 2009.09.07 by 이런남
민스2 http 500 내부 서버 오류 [2] 2009.09.04 by ㅇㄴㅇ
쥐엉 위젯에서 list.html파일 관련입니다. [1] 2009.08.31 by 金东峰
도전자 에디터에 있는 댓글허용, 엮인글 사용, 알림 체크바  
yyjweber 이미지 게시판 ... 이것과 비슷한 스킨있으면 제발좀 ㅠㅠ [1] 2009.08.18 by June Oh
ShopFree XE제로보드홈페이지 레이아웃을 사용하고있는데요! [3] 2009.08.15 by puser
으아악. 최근게시물 xeHome가 적용이 안되요.. [4] file 2009.08.15 by HolyJohn
티하이 헤더스크립 저장소 질문  
싸나이김 성인인증모듈 오류~ [2] 2009.07.28 by 싸나이김
싸나이김 성인인증 소스 제로보드이용 해서 사용하는방법  
호감이 페이지 에서 직접내용 넣는데(html) 저장후 사라지고 아무것도 없음  
모노로그 XE를 원활히 쓰기 위한, php.ini 의 설정에 대하여.. [2] 2009.07.22 by 모노로그
dusskapark 게시판이 작동을 안해요..도와주세요..ㅠㅠㅠ  
뮤랑이 에디터 컴포넌트 만드는데 도움 요청합니다. (팁이라도..예시라도..ㅜㅜ) [1] 2009.07.19 by 팩토리
글쓴이 파일첨부시 문제  
cjcl15 스크립트 어느 구문에서 생성되는거 같나요?  
kangta 2차 메뉴가 마우스따라 내려가는 기능?