고수님들 염치불구하고 또 물어봅니다.. ㅜㅜ1065 쿼리가 대체 몬지..ㅜㅜ

<?
if (!defined('_GNUBOARD_')) exit;

// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
    global $g4;

    if ($skin_dir)
        $latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
    else
        $latest_skin_path = "$g4[path]/skin/latest/basic";

    $list = array();

    $sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
    $board = sql_fetch($sql);

    $tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
    //$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
    // 위의 코드 보다 속도가 빠름
    $sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows ";
    //explain($sql);
    $result = sql_query($sql);
    for ($i=0; $row = sql_fetch_array($result); $i++)
        $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
   
    ob_start();
    include "$latest_skin_path/latest.skin.php";
    $content = ob_get_contents();
    ob_end_clean();

    return $content;
}
?>

lastest.lib 파일을 잘못건드려서 그런거 같은데.. 몬지 잘모르겠네요 고수님들..
좀도와주세요..ㅜㅜ
|

댓글 1개

어떤화면인지 URL을 보여주시고 그 화면의 소스를 올리셔야 할것 같습니다.
그리고 소스에서 어떤 라이브러리를 호출하는지도 추적을 해야할것이구요...
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
18년 전 조회 1,007
18년 전 조회 1,575
18년 전 조회 1,592
18년 전 조회 1,434
18년 전 조회 3,498
18년 전 조회 1,602
18년 전 조회 1,602
18년 전 조회 1,427
18년 전 조회 1,531
18년 전 조회 1,437
18년 전 조회 1,510
18년 전 조회 1,475
18년 전 조회 1,533
18년 전 조회 1,553
18년 전 조회 1,458
18년 전 조회 1,879
18년 전 조회 1,388
18년 전 조회 1,513
18년 전 조회 1,593
18년 전 조회 1,530
🐛 버그신고