채택완료

$list 변수는 어디에서 생성이 되나요??

2019-12-13 (금) 15:33:00 2,494

제곧내 입니다. $list 변수는 어느 파일에서 생성이 되나요?

리스트 php 파일에서 기본적인 리스트 외에 몇가지 조건을 추가해서

만들어야 할것 같은데 변수 선언이 어디에 되어있는지 모르겠네요 ㅠ

|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트

bbs/list.php 파일에 보시면

Copy
while ($row = sql_fetch_array($result))
    {
        // 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
        if ($is_search_bbs)
            $row = sql_fetch(" select * from {$write_table} where wr_id = '{$row['wr_parent']}' ");

        $list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']);
        if (strstr($sfl, 'subject')) {
            $list[$i]['subject'] = search_font($stx, $list[$i]['subject']);
        }
        $list[$i]['is_notice'] = false;
        $list_num = $total_count - ($page - 1) * $list_page_rows - $notice_count;
        $list[$i]['num'] = $list_num - $k;

        $i++;
        $k++;
    }

답변에 대한 댓글 1개

2019-12-13 (금) 16:25:42
감사합니다 ^^

답변을 작성하려면 로그인이 필요합니다.