나눈 여분필드를 리스트화면에 출력시 정보
나눈 여분필드를 리스트화면에 출력시본문
쪼갠 여분필드관련 해서 문의 드립니다.
연습으로 여분필드를 쪼개서 전화번호를 쪼갠 여분필드에 각각 저장하여
리스트화면에서 불러오는 방식을 해보는 중인데요.
for ($j=0; $j<count($list); $j++) {
$ex2_filed = explode("|",$list[$j][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]; //
<? echo $ext2_03 ?>-<? echo $ext2_04 ?>-<? echo $ext2_05 ?>
요렇게 출력하면
저장된대로 *** 개인정보보호를 위한 휴대폰번호 노출방지 *** 라고 나옵니다..
그런데
전리스트가 그렇게 나옵니다.
디비 마지막에 저장된 전화번호로 해당 게시판리스트가 쭉 도배되는거죠..
어찌해야 각 디비에있는 각각에 전화번호를 불러올수 있을까요...?
연습으로 여분필드를 쪼개서 전화번호를 쪼갠 여분필드에 각각 저장하여
리스트화면에서 불러오는 방식을 해보는 중인데요.
for ($j=0; $j<count($list); $j++) {
$ex2_filed = explode("|",$list[$j][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]; //
<? echo $ext2_03 ?>-<? echo $ext2_04 ?>-<? echo $ext2_05 ?>
요렇게 출력하면
저장된대로 *** 개인정보보호를 위한 휴대폰번호 노출방지 *** 라고 나옵니다..
그런데
전리스트가 그렇게 나옵니다.
디비 마지막에 저장된 전화번호로 해당 게시판리스트가 쭉 도배되는거죠..
어찌해야 각 디비에있는 각각에 전화번호를 불러올수 있을까요...?
Fatal error: Uncaught TypeError: mysqli_fetch_assoc(): Argument #1 ($result) must be of type mysqli_result, null given in /home/kagla/new-sir/old/lib/common.lib.php:2339 Stack trace: #0 /home/kagla/new-sir/old/lib/common.lib.php(2339): mysqli_fetch_assoc() #1 /home/kagla/new-sir/old/skin/board/v16/view.skin.php(795): sql_fetch_array() #2 /home/kagla/new-sir/old/bbs/view.php(403): include_once('...') #3 /home/kagla/new-sir/old/bbs/board.php(300): include_once('...') #4 {main} thrown in /home/kagla/new-sir/old/lib/common.lib.php on line 2339