home > 고객센터 > 자주묻는 질문(FAQ)
  
1) { $selectsql = "select * from " .$table_name . " where kind is NOT NULL and group_no = " .$group_no. " and re_order < " . $re_order .$cNew_Where . " order by re_order desc limit 1"; $result = mysql_query($selectsql, $adbconn) ; if ($result) { $r = mysql_fetch_array($result) ; $group_no = $r[group_no] ; $srlno = $r[srlno] ; if ($srlno > 0 ) { $re_level = $r[re_level] ; $re_order = $r[re_order] ; $run = "false" ; } else { $run = true ; } } } if ($run == "true") { $cOrder = " order by group_no ,re_order desc " ; $selectsql = "select * from " .$table_name . " where group_no > " .$group_no . $cNew_Where .$cOrder ." limit 1 " ; $result = mysql_query($selectsql, $adbconn) ; $r = mysql_fetch_array($result) ; $group_no = $r[group_no] ; $srlno = $r[srlno] ; $re_level = $r[re_level] ; $re_order = $r[re_order] ; $run = "false" ; } } elseif ($direction=="next") { $cOrder = " order by group_no desc, re_order desc " ; $run = "true" ; $selectsql = "select * from " .$table_name . " where kind is NOT NULL and group_no = " .$group_no. " and re_order > " . $re_order .$cNew_Where . " order by re_order limit 1"; $result = mysql_query($selectsql, $adbconn) ; if ($result) { $r = mysql_fetch_array($result) ; $srlno = $r[srlno] ; if ($srlno > 0 ) { $run = "false" ; $group_no = $r[group_no] ; $re_level = $r[re_level] ; $re_order = $r[re_order] ; } else { $run = "true" ; } } if ($run == "true") { $cOrder = " order by group_no desc ,re_order " ; $selectsql = "select * from " .$table_name . " where kind is NOT NULL and group_no < " .$group_no . $cNew_Where .$cOrder ." limit 1 " ; $result = mysql_query($selectsql, $adbconn) ; if ($result) { $r = mysql_fetch_array($result) ; $group_no = $r[group_no] ; $srlno = $r[srlno] ; $re_level = $r[re_level] ; $re_order = $r[re_order] ; } } } else { $selectsql = "select * from " . $table_name . " where kind is NOT NULL and srlno =" .$srlno ; $result = @mysql_query($selectsql, $adbconn) ; $r = @mysql_fetch_array($result) ; $group_no = $r[group_no] ; $re_level = $r[re_level] ; $re_order = $r[re_order] ; $srlno = $r[srlno] ; } if (!$result or !$srlno or !$group_no) { echo(""); exit ; } $updatesql = "update " . $table_name . " set read_count = read_count + 1 where kind is NOT NULL and srlno =" . $srlno ; mysql_query($updatesql, $adbconn) ; $selectsql = "select * from " . $table_name ." where kind is NOT NULL and srlno =".$srlno ; $result = mysql_query($selectsql, $adbconn) ; $r = mysql_fetch_array($result) ; $num_ber = $r[srlno]; $writer = stripslashes($r[writer]) ; $name = stripslashes($r[name]) ; $password = stripslashes($r[password]) ; $email = stripslashes($r[email]) ; $title = stripslashes($r[title]); $app = $r[app]; $contents = str_replace(" "," ",$contents) ; $chk = $r[chk]; $cnt = $r[read_count]; $contents = nl2br(StripSlashes($r[contents])) ; $selectsql2 = "select max(srlno) from ". $table_name; $result2 = mysql_query($selectsql2, $adbconn) ; $r2 = mysql_fetch_array($result2); $maxSrlno = $r2[0]; $group_q = "select writer from cpbbs where kind is NOT NULL and group_no = '$group_no' order by srlno asc limit 1"; $group_r = @mysql_query($group_q, $adbconn); $group_writer = @mysql_result($group_r,0,0); //echo "$group_q, $group_writer"; if ($chk == 'n') { if ($writer != $cp_pid and $cp_pid != 'saynet_admin' and $cp_pid != $group_writer) { echo ""; exit; } } ?>
.gif" name="Image53" width="80" height="35" border="0" id="Image53" /> .gif" name="Image52" width="109" height="35" border="0" id="Image52" /> .gif" name="Image48" width="109" height="35" border="0" id="Image48" /> .gif" name="Image49" width="109" height="35" border="0" id="Image49" /> .gif" name="Image57" width="109" height="35" border="0" id="Image57"> .gif" name="Image51" width="84" height="35" border="0" id="Image51" />
파일받기"; } else { echo "없음"; } ?>
FAQ 답변으로 궁금증이 해결되지 않을 경우 [1:1 문의하기]문의하세요.
신속히 답변을 해드리겠습니다.
   "; ?>