게시판 작성할때요 작성자가 별명으로 나오는데 별명 대신에 이름(아이디)로 출력할 수 있도록 하는 방법 있나요
예를들면 작성자 : 홍길동(hong2235)
이런식으로요...
예를들면 작성자 : 홍길동(hong2235)
이런식으로요...
댓글 2개
list
<?
$sql = "select * from ".$g4['member_table']." where mb_id = '".$list[$i][mb_id]."'";
$result = sql_query($sql);
$row = sql_fetch_array($result);
echo $row[mb_name]."(".$list[$i][mb_id].")";
?>
view
<?
$sql = "select * from ".$g4['member_table']." where mb_id = '".$view[mb_id]."'";
$result = sql_query($sql);
$row = sql_fetch_array($result);
echo $row[mb_name]."(".$view[mb_id].")";
?>
<?
$sql = "select * from ".$g4['member_table']." where mb_id = '".$list[$i][mb_id]."'";
$result = sql_query($sql);
$row = sql_fetch_array($result);
echo $row[mb_name]."(".$list[$i][mb_id].")";
?>
view
<?
$sql = "select * from ".$g4['member_table']." where mb_id = '".$view[mb_id]."'";
$result = sql_query($sql);
$row = sql_fetch_array($result);
echo $row[mb_name]."(".$view[mb_id].")";
?>
게시글 목록
| 번호 | 제목 |
|---|---|
| 283882 | |
| 283880 | |
| 283874 | |
| 283871 | |
| 283863 | |
| 283856 | |
| 283852 | |
| 283848 | |
| 283847 | |
| 283844 | |
| 283843 | |
| 283839 | |
| 283835 | |
| 283826 | |
| 283821 | |
| 283818 | |
| 283817 | |
| 283816 | |
| 283814 | |
| 283811 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기