필드 쪼갠 데이터 불러오기

필드 쪼갠 데이터 불러오기

QA

필드 쪼갠 데이터 불러오기

본문

write.skin.php에서 필드를

 

$customer_content = explode("|",$write[wr_content]);
$customer_ceo  = $customer_content[0];
$customer_type  = $customer_content[1];
$customer_item  = $customer_content[2];

...으로 쪼갠 후 저장한 데이터를

 

list.skin.php에서 불러오려면 어떻게 해야하나요??

 

예를들어 list.skin.php에서 $customer_type을 불러올 때입니다. 

이 질문에 댓글 쓰기 :

답변 3

list.skin.php 파일의

for($i)라고 되어있는 for문 안에 넣으면됨..

 

$customer_content = explode("|",$list[$i][wr_content]);
$customer_ceo  = $customer_content[0];
$customer_type  = $customer_content[1];
$customer_item  = $customer_content[2]; 

 

echo $customer_ceo;

답변을 작성하시기 전에 로그인 해주세요.
전체 10
QA 내용 검색

회원로그인

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