함수_-_
더시민
0
2018
0
2021.06.22 10:41
function get_programs(){
global $g5;
$tmp_write_table = $g5['write_prefix'] .'site';
$sql = " select * from {$tmp_write_table} where wr_is_comment = 0 order by wr_num ";
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++) {
print_r($row);
$list[$i] = get_list($row, $board, $latest_skin_url, $subject_len);
$list[$i]['first_file_thumb'] = (isset($row['wr_file']) && $row['wr_file']) ? get_board_file_db($bo_table, $row['wr_id'], 'bf_file, bf_content', "and bf_type between '1' and '3'", true) : array('bf_file'=>'', 'bf_content'=>'');
echo "@@@@@";
}
}
get_programs();
$site_code = array();