G4 소스를 G5로 변경하려합니다.

G4 소스를 G5로 변경하려합니다.

QA

G4 소스를 G5로 변경하려합니다.

본문

 

아래 소스를 g5용으로 바꾸고싶은데 어디를 수정해야하는지 도움좀 부탁드릴께요..


<?
include_once("./_common.php");
$g4[title] = "";
//if (!$member[mb_id]) { alert("로그인해야 사용가능합니다."); }
//else { // 로그인후 사용가능
include_once("./_head.php");
$sql_common = " from $g4[member_table] ";
$qstr = "";
if (isset($Usex))  $qstr .= '&Usex=' . urlencode($Usex);
if (isset($UageF))  $qstr .= '&UageF=' . urlencode($UageF);
if (isset($UageT))  $qstr .= '&UageT=' . urlencode($UageT);
if (isset($Uid))  $qstr .= '&Uid=' . urlencode($Uid);
if (isset($UregF))  $qstr .= '&UregF=' . urlencode($UregF);
if (isset($UregT))  $qstr .= '&UregT=' . urlencode($UregT);
$sql_search = " where (1) ";
if ($Usex) { $sql_search .= " and (mb_sex = '$Usex') "; }
if ($UageF) { $sql_search .= " and (mb_birth <= '$UageF') "; }
if ($UageT) { $sql_search .= " and (mb_birth >= '$UageT') "; }
//if ($Uid) { $sql_search .= " and (mb_id = '$Uid') "; }
if ($Uid) { $sql_search .= " and (mb_id like '%$Uid%') "; }
if ($UregF) { $sql_search .= " and (mb_datetime >= '$UregF') "; }
if ($UregT) { $sql_search .= " and (mb_datetime <= '$UregT') "; }
if (!$sst) {
    $sst = "mb_datetime";
    $sod = "desc";
}
$sql_order = " and mb_level != '10' order by $sst $sod ";
$sql = " select count(*) as cnt
         $sql_common
         $sql_search
         $sql_order ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
//$rows = $config[cf_page_rows];
$rows = "15";
$total_page  = ceil($total_count / $rows);  // 전체 페이지 계산
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$listall = "<a href='$_SERVER[PHP_SELF]' class=tt>처음</a>";
$sql = " select *
          $sql_common
          $sql_search
          $sql_order
          limit $from_record, $rows ";
$result = sql_query($sql);
?> 

 

이 질문에 댓글 쓰기 :

답변 1

$g5['title'] = "";
$sql_common = " from {$g5['member_table']} ";

 

이렇게 해보세요. 

답변을 작성하시기 전에 로그인 해주세요.
전체 8
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT