Exemple #1
0
$brdWork = new DBBoardWork();
$brdPost = null;
try {
    //$_GET : ['post_id'], ['tbl_kind']
    /*
    if(!((int)$_GET['tbl_kind']!=11&&(int)$_GET['tbl_kind']!=12&&(int)$_GET['tbl_kind']!=13))
    //if((int)$_GET['tbl_kind']>10&&(int)$_GET['tbl_kind']<14)
    	$brdWork->createWork($_GET, false);
    else
    	$brdWork->createWork($_GET, true);
    */
    $brdWork->createWork($_GET, false);
    $brdPost = $brdWork->requestPost();
    //다음 결과를 가져온다
    $avatar_wear = $brdWork->fetchArrayRow();
    $brdWork->nextQueryResult();
    $infoPost_prev = $brdWork->fetchArrayRow();
    $infoPost_next = $brdWork->fetchArrayRow();
    //테이블명
    $brdPost->tname = $brdWork->getTableName($_GET['tbl_kind']);
    if ($brdPost == null) {
        throw new Exception('Board view error.');
    }
    $brdWork->destoryWork();
    $tblKind = $_GET['tbl_kind'];
    $pg_inx = $_GET['pg_inx'];
} catch (Exception $e) {
    $brdWork->destoryWork();
    echo $e->getMessage();
    exit;
}