전체의 회원 나타내기 정보
전체의 회원 나타내기본문
전체의 회원 아이디와 이름을 나타내게 하고 싶습니다..
한마디로 회원가입한 모든 사람의 아이디, 이름을 나타내게 하는 소스 잇나요
한마디로 회원가입한 모든 사람의 아이디, 이름을 나타내게 하는 소스 잇나요
댓글 전체
간단하게 짜봤어요.
<?
include_once("./_common.php");
include_once("$g4[path]/_head.php");
$query = sql_query("select mb_name, mb_id from `$g4[member_table]`");
while($row = sql_fetch_array($query)) {
echo "$row[mb_name]($row[mb_id])<br />";
}
include_once("$g4[path]/_tail.php");
?>
<?
include_once("./_common.php");
include_once("$g4[path]/_head.php");
$query = sql_query("select mb_name, mb_id from `$g4[member_table]`");
while($row = sql_fetch_array($query)) {
echo "$row[mb_name]($row[mb_id])<br />";
}
include_once("$g4[path]/_tail.php");
?>
감사합니다. 잘 됩니다.
생각해보니 아이디가 노출되는 건 보안의 위험이 있겠네요.
if($member[mb_level]<10) die();
이런 것을 세번째 줄에 추가해주시면 좋을 것 같습니다.
if($member[mb_level]<10) die();
이런 것을 세번째 줄에 추가해주시면 좋을 것 같습니다.