쪼갠필드중 하나를 리스트에서 보이게 할 수 있을까요? > 그누4 질문답변

그누4 질문답변

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

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

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

본문

$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>";
}
?>

댓글 전체

전 그냥 무식하게..
$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;
하는데..;;

요래도 나오던데요..
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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