$list 변수는 어디에서 생성이 되나요??
본문
제곧내 입니다. $list 변수는 어느 파일에서 생성이 되나요?
리스트 php 파일에서 기본적인 리스트 외에 몇가지 조건을 추가해서
만들어야 할것 같은데 변수 선언이 어디에 되어있는지 모르겠네요 ㅠ
답변 1
bbs/list.php 파일에 보시면
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++;
}
답변을 작성하시기 전에 로그인 해주세요.