게시판 작성할때요 작성자가 별명으로 나오는데 별명 대신에 이름(아이디)로 출력할 수 있도록 하는 방법 있나요
예를들면 작성자 : 홍길동(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].")";
?>
게시글 목록
| 번호 | 제목 |
|---|---|
| 284348 | |
| 284336 | |
| 284333 | |
| 284332 | |
| 284320 | |
| 284318 | |
| 284316 | |
| 284313 | |
| 284307 | |
| 284306 | |
| 284303 | |
| 284298 | |
| 284296 | |
| 284290 | |
| 284286 | |
| 284280 | |
| 284277 | |
| 284272 | |
| 284261 | |
| 284259 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기