여분필드를 나누어 사용할때 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];
$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]?> 이렇케 하면, 나눈 모든 것이 출력이 되지만요
혹시 아시는 분이 계시면 답을 꼭 부탁드려요~~
급하거든요~~~~
댓글 전체

$list[$i][ex5_filed1] = $ext5_00;
$list[$i][ex5_filed2] = $ext5_01;
..
이렇게 한후
출력할곳에<?=$list[$i][ex5_filed1]?> 식으로 넣어보세요.
$list[$i][ex5_filed2] = $ext5_01;
..
이렇게 한후
출력할곳에<?=$list[$i][ex5_filed1]?> 식으로 넣어보세요.

$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?> 등등
$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[$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] 순으로
정확한 방법인지는 모르겠습니다.ㅜ
$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?>이런식으로 하면 될듣합니다^^
수고하세요^^
<?
$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?>이런식으로 하면 될듣합니다^^
수고하세요^^