page= 두번 나오지 않도록 해결

This commit is contained in:
gnuboard
2013-02-06 17:41:33 +09:00
parent 39e42fce85
commit e6d32bcaf4
3 changed files with 24 additions and 32 deletions

View File

@ -260,11 +260,11 @@ while ($entry = $tmp->read()) {
}
@ksort($amenu);
$qstr = '';
if (isset($sst)) $qstr .= '&sst='.$sst;
if (isset($sod)) $qstr .= '&sod='.$sod;
if (isset($sfl)) $qstr .= '&sfl='.$sfl;
if (isset($stx)) $qstr .= '&stx='.$stx;
if (isset($page)) $qstr .= '&page='.$page;
//$qstr = 'sst=$sst&sod=$sod&sfl=$sfl&stx=$stx&page=$page';
$arr_query = array();
if (isset($sst)) $arr_query[] = 'sst='.$sst;
if (isset($sod)) $arr_query[] = 'sod='.$sod;
if (isset($sfl)) $arr_query[] = 'sfl='.$sfl;
if (isset($stx)) $arr_query[] = 'stx='.$stx;
if (isset($page)) $arr_query[] = 'page='.$page;
$qstr = implode("&", $arr_query);
?>