웹마스터 팁

회원 테이블에 enable_getmemo int(1) default (1), enable_getmemo_ment varchar(50) default ('') 추가 혹은 사용하지 않는 필드 사용(집주소 등)
회원 정보 수정(관리자 메뉴도 포함)에 쪽지 수신 허용 체크박스와 거부이유 텍스트상자 추가(NZEO 참조)
member_modify.php --------------
  <tr height=28 align=right>
     <td style=font-family:Tahoma;font-size:8pt;><b>Enable Receive Memo</td>
     <td align=left> <input type=checkbox name=enable_getmemo value=1 <? if ($member[enable_getmemo]) echo "checked"?>> 쪽지 수신 (선택을 해제시 쪽지 수신거부됩니다)<br>
                                 <img src=images/t.gif border=0 height=5 width=1>
                                수신 거부 사유 : <input type=text name=enable_getmemo_ment style=border-color:#d8b3b3 class=input class=input size=40 maxlength=200></td>
  </tr>        
----------------------------------
회원 정보 수정 완료시 함께 수정
member_modify_ok.php -----------
        $comment = addslashes($comment); // 이 아래 한줄 추가
        $enable_getmemo_ment=addslashes($enable_getmemo_ment);
[중략]
        if($group[use_comment]) $que.=",comment='$comment'"; // 이 아래 한줄 끼워넣기
        $que.=",enable_getmemo='$enable_getmemo',enable_getmemo_ment='$enable_getmemo_ment'";
        $que.=",openinfo='$openinfo',open_email='$open_email',open_homepage='$open_homepage',open_icq='$open_icq',open_msn='$open_msn',open_comment='$open_comment',open_job='$open_job',open_hobby='$open_hobby',open_home_address='$open_home_address',open_home_tel='$open_home_tel',open_office_address='$open_office_address',open_office_tel='$open_office_tel',open_handphone='$open_handphone',open_birth='$open_birth',open_picture='$open_picture',open_aol='$open_aol' ";
        $que.=" where no='$member[no]'";
----------------------------------
회원 목록 혹은 쪽지 전송(서브 메뉴에서 쪽지 보내기 선택)시 상대방이 수신 거부일경우 이유와 함께 메세지창 띄움
view_info.php --------------------

  $data=mysql_fetch_array(mysql_query("select * from $member_table where no='$member_no'"));
  // 이 아래 한줄 덧붙이기
  if (!$data[enable_getmemo]) error("쪽지 수신을 거부하신 상태입니다.<br>사유 : ".$data[enable_getmemo_ment],"window.close");

----------------------------------
제목 글쓴이 날짜
기초 통계 프로그램 for 귀차니스트;; [3] TheMics 2002.08.10
Print 이건또 뭐지? 사이트 찾다보니 있던데..^^ [13] ZipShin 2002.08.16
제로 카운터 숫자 조정하기 [8] 이주경 2002.08.21
누구나 만들수있는 게시판 [schema, write, write_ok] [10] Mr. JH 2002.08.21
누구나 만들수있는 게시판 [글목록 list.php 부분] [6] Mr. JH 2002.08.21
누구나 만들수있는 게시판 [글보기 view.php 부분] [1] Mr. JH 2002.08.21
누구나 만들수있는 게시판 [글삭제, 수정 부분] [4] file Mr. JH 2002.08.21
테이블 생성시 데이터베이스의 타입설정 [2] Mr. JH 2002.08.22
꼭 알아야 하는 4가지 쿼리문 Mr. JH 2002.08.22
PHP에서 사용하는 간단하지만 중요한 MySQL함수들 [3] Mr. JH 2002.08.22
PHP 시간관련 함수 [3] Mr. JH 2002.08.22
PHP의 제어구조 [2] Mr. JH 2002.08.22
파일하나로 만드는 한줄 메모장(테마기능 포함) [8] Mr. JH 2002.08.22
[허접] rand() 함수를 이용한 뒤죽박죽 날짜 출력 [5] Myzzix 2002.08.23
[허접] implode() 함수로 배열을 변수로! Myzzix 2002.08.23
sleep() 제대루 쓰기... 요것두 [별루 알아도 도움 안되는 팁] [5] sMokaHallo 2002.08.24
변수를 사용하여 echo로 변수값 출력하기. [7] ZipShin 2002.08.28
array_multisort를 이용한 간단한 순위체크 [4] Doogi 2002.08.28
초보의 php를 활용한 OneFrame(NoFrame) 홈페이지 만들기 - 1 [17] 아이쿠 2002.08.30
초보의 php를 활용한 OneFrame(NoFrame) 홈페이지 만들기 - 2 [11] 아이쿠 2002.08.30