완쾌도현

쪼갠필드중 하나를 리스트에서 보이게 할 수 있을까요?

$ex8_filed = explode("|",$view[wr_8]);
$ext8_00  = $ex8_filed[0];
$ext8_01  = $ex8_filed[1];
$ext8_02  = $ex8_filed[2];
$ext8_03  = $ex8_filed[3];
$ext8_04  = $ex8_filed[4];
$ext8_05  = $ex8_filed[5];
$ext8_06  = $ex8_filed[6];
$ext8_07  = $ex8_filed[7];
$ext8_08  = $ex8_filed[8];
$ext8_09  = $ex8_filed[9];
 
view 에서는 하나만 출력해도 나오는데 list에는 안나오길래
검색해서 찾았는데 리스트에 아래와 같이 하면 0-9 wr_8 쪼갠 내용들이
모두 출력됩니다.
 
이중에 $ext8_06  만 출력하고 싶을때는 어떻게 해줘야 할지 도움주시면 감사하겠습니다.
 
view.php
 
<?
$ex8_filed = explode("|",$list[$i][wr_8]);
foreach($ex8_filed as $ext8){
$ex8_filed = explode("|",$list[$i][wr_8]);
$ext8_01  = $ex8_filed[1];
$ext8_06  = $ex8_filed[6];
echo $ext8."<br>";
}
?>

댓글 3개

전 그냥 무식하게..
$ex8_filed = explode("|",$list[$i][wr_8]);
$ext8_00 = $ex8_filed[0];
$ext8_01 = $ex8_filed[1];
$ext8_02 = $ex8_filed[2];
$ext8_03 = $ex8_filed[3];
$ext8_04 = $ex8_filed[4];
$ext8_05 = $ex8_filed[5];
$ext8_06 = $ex8_filed[6];
$ext8_07 = $ex8_filed[7];
$ext8_08 = $ex8_filed[8];
$ext8_09 = $ex8_filed[9];

echo $ext8_06;
하는데..;;

요래도 나오던데요..
헉.. 정말 되네요 감사합니다.. ^-^/
별말씀을료... ^^*
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
07-04-21 조회 1,755
07-04-21 조회 2,216
07-04-21 조회 2,168
07-04-21 조회 1,614
07-04-21 조회 2,149
07-04-20 조회 1,715
07-04-20 조회 1,627
07-04-20 조회 1,648
07-04-20 조회 1,627
07-04-20 조회 1,784
07-04-20 조회 1,660
07-04-20 조회 1,670
07-04-20 조회 1,813
07-04-20 조회 1,899
07-04-20 조회 1,750
07-04-20 조회 1,795
07-04-20 조회 1,728
07-04-20 조회 1,787
07-04-20 조회 1,633
07-04-20 조회 2,192