p

최신글 스크롤 소스중 일부 입니다. 해결방안은?

아래 최신글 스크롤 소스에서 카테고리 항목을 표시하려면 어떻게 해야 할까요?

필드가 .$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;
?>


======================================================
|

댓글 2개

안녕하세요.

카테고리 이름 출력은 다음과 같이 하시면 될듯하네요.

<?=$list[$i][ca_name]?>

즐거운 하루되세요.
안돼는데요?

알려주십시요!! 부탁합니다.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
20년 전 조회 1,883
20년 전 조회 1,831
20년 전 조회 1,682
20년 전 조회 2,069
20년 전 조회 1,707
20년 전 조회 1,638
20년 전 조회 1,764
20년 전 조회 1,883
20년 전 조회 1,622
20년 전 조회 1,683
20년 전 조회 1,607
20년 전 조회 1,902
20년 전 조회 1,592
20년 전 조회 2,048
20년 전 조회 1,791
20년 전 조회 1,781
20년 전 조회 1,809
20년 전 조회 1,719
20년 전 조회 1,754
20년 전 조회 2,037
🐛 버그신고