latest.lib.php 관련해서 질문 드립니다. > 질문답변

본문 바로가기
사이트 내 전체검색

질문답변

서버정보나 계정정보는 보안유지를 위해 관리자쪽지나 메일로 발송해 주시거나 제작의뢰 게시판을 이용해 주시면 감사하겠습니다..

latest.lib.php 관련해서 질문 드립니다.

페이지 정보

본문

function latest_name($skin_dir="", $bo_table, $rows=10, $subject_len=40, $mb_idx)
{
    global $config;
    global $g4;

    if ($skin_dir)
        $latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
    else
        $latest_skin_path = "$g4[path]/skin/latest/$config[cf_latest_skin]";

    $list = array();

    $sql = " select * from {$g4[board_table]} where bo_table = '$bo_table'";
    $board = sql_fetch($sql);

    $tmp_write_table = $g4[write_prefix] . $bo_table;
    $sql = " select * from $tmp_write_table where mb_id = '$mb_idx' and wr_is_comment = 0 order by wr_num limit 0, $rows ";
   
    $result = sql_query($sql);
    for ($i=0; $row = sql_fetch_array($result); $i++)
        $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
   
    ob_start();
    include "$latest_skin_path/latest.skin.php";
    $content = ob_get_contents();
    ob_end_clean();

    return $content;
}


<?=latest_name('onlinle', 'online', 50, 45, 회원아이디); ?>

<?=latest_name('onlinle', 'online', 50, 45, $member[mb_id]); ?>

이렇게 하니깐 안되더라구요 부탁드립니다.
추천0

댓글목록

profile_image

제로님의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

$sql = " select * from $tmp_write_table where mb_id = '$member[mb_id]' and wr_is_comment = 0 order by wr_num limit 0, $rows ";

이렇게 하시고 전체를 뽑아주세요.

Total 64건 1 페이지
  • RSS
질문답변 목록
번호 제목 글쓴이 조회 추천 날짜
64 로미오1쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10304 0 02-02
63 visualp쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8 0 09-11
62
install error 댓글1
못난이쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2 0 09-10
61 E2쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5 0 09-21
60 프리즘볼쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13092 0 07-28
59 하현준우사랑쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 15727 0 03-28
58 누고쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11739 0 03-18
57 심봉사쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12062 0 03-12
56 성젬쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 17658 0 01-06
55 심봉사쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 25139 0 11-08
54 깬다깨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 22656 0 11-08
53 도나쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 21886 0 11-05
52 심봉사쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19379 0 10-29
51 심봉사쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11757 0 10-26
50 바라짱쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 70 0 06-27
49 부업타운쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6991 0 06-24
48 부업타운쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8999 1 06-24
47 휴먼쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14795 1 06-24
46 바다호랑이쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7293 1 06-07
45 그루터기쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 9056 1 05-16
44 월드컵쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11698 0 05-12
43 소금쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14887 1 04-27
42 프라하쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9002 1 03-29
41 프라하쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12033 0 03-28
40 타조쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9820 0 03-25

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
653
어제
7,612
최대
8,233
전체
1,617,838
Copyright (c) 株式会社YHPLUS. All rights reserved.