게시판 작성할때요 작성자가 별명으로 나오는데 별명 대신에 이름(아이디)로 출력할 수 있도록 하는 방법 있나요
예를들면 작성자 : 홍길동(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].")";
?>
게시글 목록
| 번호 | 제목 |
|---|---|
| 284044 | |
| 284041 | |
| 284040 | |
| 284034 | |
| 284033 | |
| 284029 | |
| 284024 | |
| 284015 | |
| 284011 | |
| 284010 | |
| 284009 | |
| 283998 | |
| 283992 | |
| 283989 | |
| 283984 | |
| 283983 | |
| 283981 | |
| 283976 | |
| 283974 | |
| 283966 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기