[제나플러스] 필드추가시
페이지 정보
본문
write_update.skin.php
//우편번호
$wr_5= "$ext5_00-$ext5_01";
$sql5 = " update $write_table set wr_5 = '$wr_5' where wr_id = '$wr_id' ";
sql_query($sql5);
//전화번호
$wr_6 = "$tel1-$tel2-$tel3";
$sql6 = " update $write_table set wr_6 = '$wr_6' where wr_id = '$wr_id' ";
sql_query($sql6);
//휴대폰
$wr_7 = "$hp1-$hp2-$hp3";
$sql7 = " update $write_table set wr_7 = '$wr_7' where wr_id = '$wr_id' ";
sql_query($sql7);
write.skin.php
//우편번호
$ex5_filed = explode("-",$write[wr_5]);
$ext5_00 = $ex5_filed[0];
$ext5_01 = $ex5_filed[1];
//전화번호
$tel = explode("-",$write[wr_6]);
$tel1 = $tel[0];
$tel2 = $tel[1];
$tel3 = $tel[2];
//휴대폰
$hp = explode("-",$write[wr_7]);
$hp1 = $hp[0];
$hp2 = $hp[1];
$hp3 = $hp[2];
//우편번호
$wr_5= "$ext5_00-$ext5_01";
$sql5 = " update $write_table set wr_5 = '$wr_5' where wr_id = '$wr_id' ";
sql_query($sql5);
//전화번호
$wr_6 = "$tel1-$tel2-$tel3";
$sql6 = " update $write_table set wr_6 = '$wr_6' where wr_id = '$wr_id' ";
sql_query($sql6);
//휴대폰
$wr_7 = "$hp1-$hp2-$hp3";
$sql7 = " update $write_table set wr_7 = '$wr_7' where wr_id = '$wr_id' ";
sql_query($sql7);
write.skin.php
//우편번호
$ex5_filed = explode("-",$write[wr_5]);
$ext5_00 = $ex5_filed[0];
$ext5_01 = $ex5_filed[1];
//전화번호
$tel = explode("-",$write[wr_6]);
$tel1 = $tel[0];
$tel2 = $tel[1];
$tel3 = $tel[2];
//휴대폰
$hp = explode("-",$write[wr_7]);
$hp1 = $hp[0];
$hp2 = $hp[1];
$hp3 = $hp[2];
추천0
댓글목록
등록된 댓글이 없습니다.