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 질문답변

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

+
제목 글쓴이 날짜 조회
15년 전 조회 1,648
15년 전 조회 1,548
15년 전 조회 1,564
15년 전 조회 3,002
15년 전 조회 2,083
15년 전 조회 1,557
15년 전 조회 1,443
15년 전 조회 1,588
15년 전 조회 1,637
15년 전 조회 1,555
15년 전 조회 1,585
15년 전 조회 1,623
15년 전 조회 1,544
15년 전 조회 1,541
15년 전 조회 1,566
15년 전 조회 1,533
15년 전 조회 1,547
15년 전 조회 1,539
15년 전 조회 1,722
15년 전 조회 1,534