R

latest.lib.php 관련해서 질문 드립니다.

function latest_name($skin_dir="", $bo_table, $rows=10, $subject_len=40, $mb_idx)
{
global $config;
global $g4;

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

$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 mb_id = '$mb_idx' and wr_is_comment = 0 order by wr_num limit 0, $rows ";

$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;
}


<?=latest_name('onlinle', 'online', 50, 45, 회원아이디); ?>

<?=latest_name('onlinle', 'online', 50, 45, $member[mb_id]); ?>

이렇게 하니깐 안되더라구요 부탁드립니다.

댓글 3개

$member[mb_id] 밖에서 따로 외부로 이용하시면 될듯한데....
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
10-05-02 조회 1,708
10-05-02 조회 1,641
10-05-02 조회 1,663
10-05-02 조회 1,704
10-05-02 조회 1,634
10-05-02 조회 1,630
10-05-01 조회 1,648
10-05-01 조회 1,617
10-05-01 조회 1,620
10-05-01 조회 1,633
10-05-01 조회 1,809
10-05-01 조회 1,621
10-04-30 조회 1,669
10-04-30 조회 2,234
10-04-30 조회 1,656
10-04-30 조회 1,616
10-04-30 조회 1,672
10-04-30 조회 1,619
10-04-30 조회 1,942
10-04-30 조회 1,633