Skip to content
On this page

복수 게시판 정보 가져오기

복수 게시판 정보 가져오기

php
$bbs_cate = ["notice","free"];
$bo_table = implode("','", $bbs_cate);
  
$sql = " select bo_table from {$g5['board_table']} where bo_table in('".$bo_table."')";
$rr = sql_query($sql);
  
while ($bbs = sql_fetch_array($rr)) {
    $tmp_write_table = $g5['write_prefix'] . $bbs['bo_table'];
  
    $sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num ";
    $row = sql_fetch($sql);
}