여분필드를 나누어 사용할때 list에 출력하는 방법? > 그누4 질문답변

그누4 질문답변

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

여분필드를 나누어 사용할때 list에 출력하는 방법? 정보

여분필드를 나누어 사용할때 list에 출력하는 방법?

본문

$ex5_filed = explode("|",$write[wr_5]);
$ext5_00  = $ex5_filed[0];
$ext5_01  = $ex5_filed[1];
$ext5_02  = $ex5_filed[2];
$ext5_03  = $ex5_filed[3];
 
위와 같이 wr_5를 나누어 사용하였습니다.
 
그런데.. list에 <?=$ext5_00?> 이렇케 하면 출력이 되지 않네요.
물론, view에서는 출력이 되구요
 
list에서 <?=$list[$i][wr_5]?> 이렇케 하면, 나눈 모든 것이 출력이 되지만요
 
 
혹시 아시는 분이 계시면 답을 꼭 부탁드려요~~
급하거든요~~~~

댓글 전체

$ex5_filed = explode("|",$write[wr_5]); 를

$ex5_filed = explode("|",$list[$i][wr_5]); 로 바꾸셔서 for문 바로 아래에 넣으세요....
$ext5_00  = $ex5_filed[0];
$ext5_01  = $ex5_filed[1];
$ext5_02  = $ex5_filed[2];
$ext5_03  = $ex5_filed[3];

출력 동일 : <?=$ext5_00?>  등등
2차 배열로 가야 하겠군요.
$list[$i][ex5_filed] = explode("|",$list[$i][wr_5]);
$list[$i][ex5_filed0] = $list[$i][ex5_filed][0];
$list[$i][ex5_filed1] = $list[$i][ex5_filed][1];
$list[$i][ex5_filed2] = $list[$i][ex5_filed][2];
$list[$i][ex5_filed3] = $list[$i][ex5_filed][3];

이렇게한후 출력에서 $list[$i][ex5_filed0] 순으로 나열하면 되겠네요.
정확한건지는 모르겠지만 $list = array(); <-요거때문에 리스트에서 $ext5_03 이렇게
들어가면 전체 리스트값이 동일하게 나올듯 합니다.ㅠㅠ
테스트해보니 반복문 내에서 아래처럼 하니깐 됩니다만
정확한 방법인지는 모르겠습니다.ㅜ

$ex5_filed = explode("|",$list[$i][wr_5]);
$list[$i][ex5_filed0] = $ex5_filed[0];
$list[$i][ex5_filed1] = $ex5_filed[1];
$list[$i][ex5_filed2] = $ex5_filed[2];
$list[$i][ex5_filed3] = $ex5_filed[3];

출력은 $list[$i][ex5_filed0] 순으로
그냥 간단히 하십시오....^^

질문 원글의 맨 윗줄만 바꾸시고 반복문 아래에 넣고 출력하면 됩니다...

이미 여러 스킨에 적용되어 있는 내용입니다....호호호~~**
list.skin.php상단에
<?
$ex5_filed = explode("|",$list[$i][wr_5]);
$ext5_00  = $ex5_filed[0];
$ext5_01  = $ex5_filed[1];
$ext5_02  = $ex5_filed[2];
$ext5_03  = $ex5_filed[3];
?>
이부분을 넣고요
출력은<?=$ext5_00?>이런식으로 하면 될듣합니다^^

수고하세요^^
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT