묻고답하기

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


<?
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 남기남
홍길동친구 사이트메뉴편집 에러관련 [1] 2016.05.31 by 해피지영
ha****921ae xe/classes/db/DB.class.php on line 633 에러 문의 file  
대구미녀 게시판 선택해서 글쓰는방법 [1] 2016.05.31 by sejin7940
d@s 사용자정의 - 숫자만 입력 받을 수 있도록... [1] file 2016.05.31 by sejin7940
춥다 그림에 따른 margin 여백 [2] file 2016.05.31 by 춥다
kjmedi626 오류가 떳는데..해결이 안됩니다.. [3] 2016.05.31 by kjmedi626
kjmedi626 asp로만든 홈페이지를 XE로... [2] 2016.05.31 by kjmedi626
kjmedi626 에러가 떳어요..ㅠㅠ어케해야하죠..  
c_hye**** 사이트 질문드립니다.  
비틀즈 주소창의 index.php?mid=sub4&act=dispMemberLoginForm 이런식으로 [1] 2016.05.31 by 비틀즈
midal2 게시판 테이블이 자꾸 밀려요... ㅠㅠ file  
박하향풍선껌 특정 게시판에서만 권한 오류가 발생합니다. [2] 2016.05.31 by 박하향풍선껌
바오밥나무 robots.txt 문의드립니다.  
쭈박이 도메인 관련 질문좀 드리겠습니다 [4] 2016.05.31 by 쭈박이
콜롬보. 기존회원이 변경된 약관 동의해야 사용할 수 있게 하려면  
권양수563 회원가입창이 안떠요 ㅠ.ㅠ [1] 2016.05.31 by 꼬마
비틀즈 스킨에 특정아이피만 버튼 오픈하기 [2] 2016.05.31 by 비틀즈
샵사이드 CentOS APM 문의드립니다. [2] 2016.05.31 by 샵사이드
꼬마 회원가입) 회원가입을 하실 수 없습니다  
Jeanne [초보문제] 레이아웃 양쪽 공백 관련 file