RadarURL

조회 수 4727 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
요며칠 질답게시판에서 제가 아는 한도내에서 답변을 해드리고 있는데 (저역시 초보입니다)
의외로 회원정보를 불러 오는 질문이 많았습니다.
검색해보니 팁방에도 없는 것 같고 해서 올려봅니다.


view.php 상단에 추가합니다

<?
function mem_info1($member_no) {
        global $connect, $member_table;
        @$data=mysql_fetch_array(mysql_query("select * from $member_table where no='$member_no'"));
        $return_value = $data['msn']; // 원하는 필드명 (이건 쉽게 아시리라 믿으며..bbs/view_info2.php 참고)
        if( $member_no > 1 ) { // 회원일경우
                if ($return_value=="") {
                        return "정보가없네요";
                }else {
                        return $return_value;
                }
        }elseif ($member_no==1) {
                return "운영자정보"; // 비우시면 운영자는 비공개가 되겠죠?
        }else {
                return "정보가없네요";
        }
}
?>

그리고 원하는 위치에

<?=mem_info1($data['ismember'])?> 를 넣어주면 되더군요



---------------------------------------------------------------------------------


원하는 정보를 추가하시려면 위 소스 맨 아랫줄 ?> 바로 위에 삽입하시면 됩니다

$data=@mysql_fetch_array(mysql_query("select * from $member_table where no='$member_no'"));
function mem_info2($member_no) {
        global $connect, $member_table;
        @$data=mysql_fetch_array(mysql_query("select * from $member_table where no='$member_no'"));
        $return_value = $data['aol']; // 원하는 필드명 (이건 쉽게 아시리라 믿으며..bbs/view_info2.php 참고)
        if( $member_no > 1 ) { // 회원일경우
                if ($return_value=="") {
                        return "정보가없네요";
                }else {
                        return $return_value;
                }
        }elseif ($member_no==1) {
                return "운영자정보"; // 비우시면 운영자는 비공개가 되겠죠?
        }else {
                return "정보가없네요";
        }
}

를 추가하시고 원하는 위치에

<?=mem_info2($data['ismember'])?>


이런식으로 계속 추가하시면 됩니다....(더 좋은 방법 있으신분 추가해주세요 ^^)

출처 : http://www.nzeo.com/bbs/zboard.php?id=cgi_tip&page=2&sn1=&divpage=1&sn=off&ss=on&sc=off&keyword=정보&select_arrange=headnum&desc=asc&no=6299
?

공부 게시판

공부에 도움되는 글을 올려주세요.

  1. [공지] 공부 게시판 입니다.

    Date2003.08.18 By처누 Views964355
    read more
  2. 버스(BUS)는 무엇을 뜻하나요?

    Date2026.06.12 Category네트워크 ByYooN Views2
    Read More
  3. 중증난치질환과 희귀질환 차이

    Date2026.04.10 Category건강 ByYooN Views212
    Read More
  4. [Rocky Linux 9] /home 용량 줄이고 /root 용량 늘리기

    Date2026.04.03 Category유닉스/리눅스 ByYooN Views293
    Read More
  5. [Rocky Linux] LVM 환경에서 /root 파티션 공간 부족 해결

    Date2026.04.03 Category유닉스/리눅스 ByYooN Views307
    Read More
  6. 일반적인 Htaccess 301 리디렉션 규칙

    Date2026.04.01 Category웹서버,WAS ByYooN Views362
    Read More
  7. [Linux/Rocky] SSH Root 로그인하는 방법 (root 접속 허용)

    Date2026.04.01 Category유닉스/리눅스 ByYooN Views463
    Read More
  8. MariaDB my.cnf 설정 파일

    Date2026.03.03 Category데이터베이스 ByYooN Views272
    Read More
  9. MariaDB 설정 파일 개요와 구조

    Date2026.03.03 Category데이터베이스 ByYooN Views596
    Read More
  10. EMR을 기반으로 DW를 구축한 병원의 CRM 활용 방안 연구 = The Study on a Plan to Activate Customer Relationship Management through Data Warehouse based on Electronic Medical Record of Hospitals

    Date2026.02.06 Category논문 ByYooN Views311
    Read More
  11. 호스팅케이알(hosting.kr) 도메인 가격 2배 인상으로 인한 도메인 기관 이전

    Date2026.01.16 Category인터넷 ByYooN Views554
    Read More
  12. 올바른 자위습관을 가져야 하는 이유

    Date2026.01.12 Category건강 ByYooN Views552
    Read More
  13. 대한민국 결정사 직업 등급표

    Date2026.01.09 Category연애 ByYooN Views522
    Read More
  14. 알아두면 유용한 향수 향 종류 모음

    Date2026.01.09 Category생활 ByYooN Views367
    Read More
  15. 로그인 구글 드라이브 안 쓰고 시놀로지 드라이브 쓰는 이유, 설정 방법 & 활용팁

    Date2026.01.08 Category업무 ByYooN Views385
    Read More
  16. SMB 다중 채널 관리

    Date2026.01.08 Category네트워크 ByYooN Views374
    Read More
  17. Synology NAS SMB 3.0 Multichannel 이용하기

    Date2026.01.08 Category네트워크 ByYooN Views414
    Read More
  18. 어떻게 SSH를 통해 root 권한으로 DSM/SRM에 로그인할 수 있습니까?

    Date2026.01.08 Category네트워크 ByYooN Views365
    Read More
  19. 시놀로지 나스 SMB 3.0 멀티채널 구성하는법

    Date2026.01.08 Category네트워크 ByYooN Views245
    Read More
  20. RWA(Real-World Assets): 실물자산 토큰화 이해

    Date2026.01.05 Category경제 ByYooN Views298
    Read More
  21. 그루밍성범죄와 가스라이팅 차이점, 처벌 수위 알아보기

    Date2025.12.23 Category생활 ByYooN Views395
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 127 Next
/ 127


즐겨찾기 (가족)

JAESOO's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

숭실대 컴퓨터 통신연구실 (서창진)

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

아스가르드 좋은사람/나쁜사람

JServer.kr

제이서버 메타블로그

재수 티스토리


즐겨찾기 (강의, 커뮤니티)

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너