리스트에서 분할필드 출력
본문
분할로 잘 저장되어 있습니다.
$ext222_filed = explode("|",$write[wr_222]); //
$ext222_00 = $ex222_filed[0]; //
$ext222_01 = $ex222_filed[1]; //
$ext222_02 = $ex222_filed[2]; //
$ext222_03 = $ex222_filed[3]; //
$ext222_04 = $ex222_filed[4]; //
$ext222_05 = $ex222_filed[5]; //
상단에
이렇게 했구요,,,
리스트에서
분할 첫번째가 -3000이면 safe.jpg출력하라..
<? if($list[$i][wr_222][0] == '-3000'){ ?>
<img src="<?=$board_skin_url?>/images/safe.jpg">
<? } ?>
이렇게 했는데 출력이 안되네요..
고수님의 도움이 필요합니다.
답변 1
$ext222_filed = explode("|",$list[$i][wr_222]);
$ext222_00 = $ex222_filed[0]; //
$ext222_01 = $ex222_filed[1]; //
$ext222_02 = $ex222_filed[2]; //
$ext222_03 = $ex222_filed[3]; //
$ext222_04 = $ex222_filed[4]; //
$ext222_05 = $ex222_filed[5]; //
위에 소스를 리스트 출력 스킨 파일 for문 안으로 정의 했나 확인해 보시구요,,
출력변수는 $ext222_00 ~ $ext222_05가 되겠네요.
예를 들어서
<? if($ext222_00== '-3000'){ ?>
이런식으로....