"02"){ AlertRedirect("잘못된 요청입니다.","/index.php"); } if (empty($PageNo)) {$PageNo=1;}else{$PageNo=$PageNo;} $PageSize=10; //목록개수설정 $pagestartpoint=($PageNo-1)*$PageSize; $sql = "where cd_board='$cd_board' and ds_delind='N'"; if($searchword != ""){ if($searchtype=="" || $searchtype==null){ $sql = $sql. " and (nm_title like '$searchword%' or nm_content like '$searchword%' or cd_userid like '$searchword%')"; }else{ $sql = $sql. " and $searchtype like '$searchword%'"; } } $totalrows = @mysql_result(mysql_query("select count(*) from board_master $sql"),0,0); ?>

커뮤니티

0) { $r = mysql_query("SELECT * FROM board_master $sql ORDER BY ds_top desc, no_famally ASC, no_order ASC LIMIT $pagestartpoint,$PageSize"); $i=1; while($col = mysql_fetch_array($r)) { $date = strtotime ($col[dt_insert]); $view_date = strtotime ("-1 day",time()); if($date >= $view_date) { $newicon = " "; } else { $newicon = ""; } if($col[no_step]>0){ $padding = $col[no_step] * 8; $step = ""; } $tmpNum =$totalrows-($PageSize*($PageNo-1)); $no = ($tmpNum - $i)+1; ?>
번호 제목 작성자 등록일 답변여부
등록된 정보가 없습니다.
등록하기