', 0);
$sql1 = " select mb_name, mb_hp, mb_comp_team, mb_email, mb_comp from {$g5['member_table']} where mb_id = '{$_SESSION['session_id']}' ";
$row1 = sql_fetch($sql1);
$mb_name = $row1['mb_name'];
$mb_hp = $row1['mb_hp'];
$mb_comp_team = $row1['mb_comp_team'];
$mb_comp = $row1['mb_comp'];
$mb_email = $row1['mb_email'];
$sql2 = " select * from {$g5['qa_content_table']} where mb_id = '{$_SESSION['session_id']}' ORDER BY qa_datetime DESC limit 5";
//echo $sql2."
";
$result = sql_query($sql2);
// $qa_category = $row2['qa_category'];
// $qa_subject = $row2['qa_subject'];
// $qa_content = $row2['qa_content'];
// $qa_datetime = $row2['qa_datetime'];
// $qa_status = $row2['qa_status'];
$mylist = array();
$num = 1;
// $num = $total_count - ($page - 1) * $page_rows;
// $subject_len = G5_IS_MOBILE ? $qaconfig['qa_mobile_subject_len'] : $qaconfig['qa_subject_len'];
for($i=0; $row=sql_fetch_array($result); $i++) {
$mylist[$i] = $row;
$mylist[$i]['category'] = get_text($row['qa_category']);
$mylist[$i]['subject'] = conv_subject($row['qa_subject'], $subject_len, '…');
if ($stx) {
$mylist[$i]['subject'] = search_font($stx, $mylist[$i]['subject']);
}
$mylist[$i]['view_href'] = G5_BBS_URL.'/qaview.php?qa_id='.$row['qa_id'].$qstr;
$mylist[$i]['icon_file'] = '';
if(trim($row['qa_file1']) || trim($row['qa_file2']))
$mylist[$i]['icon_file'] = '
';
$mylist[$i]['name'] = get_text($row['qa_name']);
$mylist[$i]['date'] = substr($row['qa_datetime'], 2, 8);
$mylist[$i]['num'] = $num;
$num += 1;
}
?>
| 번호 | 구분 | 제목 | 등록일 | 상태 |
|---|---|---|---|---|
| 게시물이 없습니다. | '; } ?>