최신글 스크롤 소스중 일부 입니다. 해결방안은? 정보
최신글 스크롤 소스중 일부 입니다. 해결방안은?본문
아래 최신글 스크롤 소스에서 카테고리 항목을 표시하려면 어떻게 해야 할까요?
필드가 .$list[$i][wr_1]. 이렇게 표시된다면 카테고리는 어떻게 하나요?
저는 그냥 .$list[$i][category_name] 이렇게 하니까 안되네요
자문을 구합니다.
===============================================
<?
$java_script = "";
for ($i=0; $i<count($list); $i++) {
$linker = "./?doc=bbs/gblink.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}&index=1";
if ($list[$i][file_image1]=="") $list[$i][file_image1]=noimage;
$mclub='<table style="font-family:굴림; color:rgb(51,51,51); line-height:150%;" width=100% cellpadding=1 cellspacing=0 border=0><tr><td width="170" align=center><a href='.$list[$i][href].'><img src=\"'.$list[$i][file_image1].'\" width=\"130\" height=\"167\" border=0></a></td><td width="150" align=left><p style="line-height:180%;"><font color=\"#005cab\"> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font> 아이디:</b> <b>'.$list[$i][subject].'</b></font></b><br> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 성별: '.$list[$i][wr_1].' <br> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 출생년도: '.$list[$i][wr_2].' 년<br><b> <span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 직업: '.$list[$i][wr_6].'<br> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 학력: '.$list[$i][wr_5].'<br> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 거주지: '.$list[$i][wr_4].'<br> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 신장: '.$list[$i][wr_3].' cm</font></p></td></tr></table>';
$java_script .= "scroll_content[$i]='$mclub'\n";
}
echo $java_script;
?>
======================================================
필드가 .$list[$i][wr_1]. 이렇게 표시된다면 카테고리는 어떻게 하나요?
저는 그냥 .$list[$i][category_name] 이렇게 하니까 안되네요
자문을 구합니다.
===============================================
<?
$java_script = "";
for ($i=0; $i<count($list); $i++) {
$linker = "./?doc=bbs/gblink.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}&index=1";
if ($list[$i][file_image1]=="") $list[$i][file_image1]=noimage;
$mclub='<table style="font-family:굴림; color:rgb(51,51,51); line-height:150%;" width=100% cellpadding=1 cellspacing=0 border=0><tr><td width="170" align=center><a href='.$list[$i][href].'><img src=\"'.$list[$i][file_image1].'\" width=\"130\" height=\"167\" border=0></a></td><td width="150" align=left><p style="line-height:180%;"><font color=\"#005cab\"> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font> 아이디:</b> <b>'.$list[$i][subject].'</b></font></b><br> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 성별: '.$list[$i][wr_1].' <br> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 출생년도: '.$list[$i][wr_2].' 년<br><b> <span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 직업: '.$list[$i][wr_6].'<br> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 학력: '.$list[$i][wr_5].'<br> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 거주지: '.$list[$i][wr_4].'<br> <b><span style="font-size:9pt;"><font color="#FF9900">⊙</font></b> 신장: '.$list[$i][wr_3].' cm</font></p></td></tr></table>';
$java_script .= "scroll_content[$i]='$mclub'\n";
}
echo $java_script;
?>
======================================================
댓글 전체
안녕하세요.
카테고리 이름 출력은 다음과 같이 하시면 될듯하네요.
<?=$list[$i][ca_name]?>
즐거운 하루되세요.
카테고리 이름 출력은 다음과 같이 하시면 될듯하네요.
<?=$list[$i][ca_name]?>
즐거운 하루되세요.
안돼는데요?
알려주십시요!! 부탁합니다.
알려주십시요!! 부탁합니다.