<?php
// 출석 테이블 연결
for ($i=0; $data=sql_fetch_array($result); $i++) {
$datetime = substr($data[datetime], 11, 8);
// 회원 테이블 연결
$check = get_member($data['mb_id']);
// 닉네임
$name = get_sideview($check['mb_id'], $check['mb_nick'], $check['mb_email'], $check['mb_homepage']);
// 랭킹
$rank = $rank+1;
$rank_checked = $rank.'등';
$list = ($i%2);
$label_point = $data[mb_point];
$mb_ps_path = G5_DATA_PATH.'/member/'.substr($check['mb_id'],0,2).'/'.$check['mb_id'].'_ps.gif';
$mb_ps_url = G5_DATA_URL.'/member/'.substr($check['mb_id'],0,2).'/'.$check['mb_id'].'_ps.gif';
?>
<tr>
<td class="rank"><?php echo $rank_checked ?></td>
<td class="name"><?php echo $name ?></td>
<td class="info_m"><span class="contentsText" style="color: #000000"><?php echo get_text($data[subject]) ?></span></td>
<td class="time"><?php echo $datetime ?></td>
<td class="point"><?php echo $label_point ?></td>
<td class="absent"><?php echo $data[day] ?>일</td>
</tr>
<?php }if(!$i){ ?>
<tr>
<td class="nonum" colspan="7">출석한 회원이 없습니다.</td>
</tr>
<? } ?>
</tbody>
</table>
이게 소스입니다.
어디에 정확하게 어떻게 넣어줘야할까요?