include_once('class/config.php');
?>
두산 위브 더 제니스
$stxt = "WHERE site='{$site}' AND cate='b1' ";
// 총 갯수 검색
$SQL = "SELECT COUNT(*) cnt FROM {$TABLE_INFO['board']} {$stxt}";
$res1 = mysql_fetch_array(mysql_query($SQL, $DB_CONNECT));
$TotalCount = $res1['cnt'];
// 페이지 관련 계산하기
$LineCount = MgRequestCheck($_REQUEST['LineCount'], 4, true, true); $LineCount = $LineCount ? $LineCount : 8;
$PageCount = MgRequestCheck($_REQUEST['PageCount'], 4, true, true); $PageCount = $PageCount ? $PageCount : 10;
MgComputePaging();
// 자료 검색
$SQL = "
SELECT * FROM
{$TABLE_INFO['board']}
{$stxt}
ORDER BY
odr DESC, wdate DESC, bidx DESC
LIMIT
{$StartRow}, {$LineCount}
";
$res2 = mysql_query($SQL, $DB_CONNECT); MgErrorMsg($res2);
?>