해피정

회원가입시 받은 추가필드의 내용을 게시판 내용보기와 코멘트에서도 사용하기

· 9년 전 · 5030
1. 그누보드5 / skin / board / 폴더 / view.skin.php

<section id="bo_v_info">
<h2>페이지 정보</h2>

밑에 내용 추가

<div class="tbl_frm01 tbl_wrap">
<table>
<tbody>
<?php
$HPsql = "select * from {$g5['member_table']} where mb_id='". $view['mb_id']."' ";
$HPresult = sql_query($HPsql);
$HProw = sql_fetch_array($HPresult);
$Lmb_1 = $HProw['mb_1'];
$Lmb_2 = $HProw['mb_2'];
?>
<tr>
<th scope="row">추가필드1</th>
<td><?php echo $Lmb_1; ?></td>
<th scope="row">추가필드2</th>
<td><?php echo $Lmb_2; ?></td>
<th scope="row">추가필드3</th>
<td><?php echo $Lmb_3; ?></td>
</tr>
<?php
?>
</tbody>
</table>
</div>


2. 그누보드5 / skin / board / 폴더 / view_comment_skin.php
<h1><?php echo get_text($list[$i]['wr_name']); ?>님의 댓글</h1>

을 아래와 같이 내용 추가

<h1><?php echo get_text($list[$i]['wr_name']); ?>님의 댓글</h1>
<?php
$HPmb_1 = "";
$HPmb_2 = "";

$HPsql = "select * from {$g5['member_table']} where mb_id='". $list[$i]['mb_id']."' ";
$HPresult = sql_query($HPsql);
$HProw = sql_fetch_array($HPresult);
$HPmb_1 = $HProw['mb_1'];
$HPmb_2 = $HProw['mb_2'];
?>
추가필드1 <input type="text" name="mb_1" value="<?php echo $HPmb_1; ?>" style="width:150px;" class="frm_input" readonly>  
추가필드2 <input type="text" name="mb_2" value="<?php echo $HPmb_2; ?>" style="width:150px;" class="frm_input" readonly>  
추가필드3 <input type="text" name="mb_3" value="<?php echo $HPmb_3; ?>" style="width:150px;" class="frm_input" readonly>  <br>
<?php
?>
|
댓글을 작성하시려면 로그인이 필요합니다.

그누보드5 팁자료실

+
제목 글쓴이 날짜 조회
9년 전 조회 4,829
9년 전 조회 6,323
9년 전 조회 6,541
9년 전 조회 4,986
9년 전 조회 1.1만
9년 전 조회 9,211
9년 전 조회 5,917
9년 전 조회 1.9만
9년 전 조회 1.1만
9년 전 조회 5,846
9년 전 조회 4,614
9년 전 조회 8,406
9년 전 조회 5,416
9년 전 조회 7,380
9년 전 조회 5,031
9년 전 조회 1.3만
9년 전 조회 7,364
9년 전 조회 1만
9년 전 조회 5,976
9년 전 조회 8,539
9년 전 조회 6,184
9년 전 조회 7,809
9년 전 조회 6,675
9년 전 조회 6,560
9년 전 조회 9,544
9년 전 조회 5,940
9년 전 조회 2만
9년 전 조회 8,781
9년 전 조회 5,505
9년 전 조회 2.8만