확장필드 구분자 빼고 리스트페이지에 표시좀 도와주세요. 정보
확장필드 구분자 빼고 리스트페이지에 표시좀 도와주세요.본문
여분필드 쪼개서 사용하고 있는데요 입력된값을 리스트 페이지와 뷰페이지에서 불러오니까
표시가 되긴 되는데
구분자가 표시가 되서 보기가 않좋습니다. 구분자 ( " |" )는 빼고 출력하는 방법좀 알려주세요.

리스트 페이지에서 <?=$list[$i][wr_2]?>
뷰페이지에서 <?=$view[wr_2]?>
이걸 어떻게 해야 구분자는 빼고 출력될까요?
아래는 여분필드 쪼갠거입니다.
---------------------
//장애유형
$ex2_filed = explode("|",$write[wr_2]);
$ext2_00 = $ex2_filed[0];
$ext2_01 = $ex2_filed[1];
$ext2_02 = $ex2_filed[2];
$ext2_03 = $ex2_filed[3];
$ext2_04 = $ex2_filed[4];
$ext2_05 = $ex2_filed[5];
$ext2_06 = $ex2_filed[6];
$ext2_07 = $ex2_filed[7];
$ext2_08 = $ex2_filed[8];
$ext2_09 = $ex2_filed[9];
$ext2_10 = $ex2_filed[10];
$ext2_11 = $ex2_filed[11];
$ext2_12 = $ex2_filed[12];
$ext2_13 = $ex2_filed[13];
$ext2_14 = $ex2_filed[14];
표시가 되긴 되는데
구분자가 표시가 되서 보기가 않좋습니다. 구분자 ( " |" )는 빼고 출력하는 방법좀 알려주세요.

리스트 페이지에서 <?=$list[$i][wr_2]?>
뷰페이지에서 <?=$view[wr_2]?>
이걸 어떻게 해야 구분자는 빼고 출력될까요?
아래는 여분필드 쪼갠거입니다.
---------------------
//장애유형
$ex2_filed = explode("|",$write[wr_2]);
$ext2_00 = $ex2_filed[0];
$ext2_01 = $ex2_filed[1];
$ext2_02 = $ex2_filed[2];
$ext2_03 = $ex2_filed[3];
$ext2_04 = $ex2_filed[4];
$ext2_05 = $ex2_filed[5];
$ext2_06 = $ex2_filed[6];
$ext2_07 = $ex2_filed[7];
$ext2_08 = $ex2_filed[8];
$ext2_09 = $ex2_filed[9];
$ext2_10 = $ex2_filed[10];
$ext2_11 = $ex2_filed[11];
$ext2_12 = $ex2_filed[12];
$ext2_13 = $ex2_filed[13];
$ext2_14 = $ex2_filed[14];
댓글 전체
<?=str_replace("|","",$list[$i][wr_2])?>
유찬아빠님 정말 감사합니다.
이거 땜시 엄청 해맸거든요
그럼 좋은 하루되세요.
이거 땜시 엄청 해맸거든요
그럼 좋은 하루되세요.