휴

최신글 접근권한 문의

로그인 했을때만 최신글을 출력하구요.
로그인전에 특정문자 출력 어덯게 해야하나요?


[code]

<?

for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo "<tr><td> </td></tr>";

$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_4]), 20);
//$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
//if (!file_exists($img) || !$list[$i][file][0][file])
// $img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";

echo <<<HEREDOC
<tr width="232">
<td width="">
<table width="232" border="0" cellspacing="0" valign="top">
<tr height='2' colspan='4'><td></td></tr>
<tr height='18'>

<td width="75" align="left"><a href='{$list[$i][ca_name_href]}'><font style='font-family:돋움; font-size:9pt; letter-spacing:-1px; color:#767be3;'>{$list[$i][ca_name]}</font></a></td>
<td width="115" align="left" style='font-family:돋움; font-size:9pt; letter-spacing:-1px;'><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>{$list[$i][wr_4]}</a></td>
<td width="48" align="right" style='font-family:돋움; font-size:8pt; color:#996633;'>{$list[$i][wr_1]}</td>
<tr><td height='1' colspan='4' bgcolor='#E5E5E5'></td></tr>

</table>
</td></tr>
HEREDOC;
}
?>
[/code]
이부분을 안보이게 해야해서요..


[code]
<?
if($member[mb_level]>=3){

echo "여기";

}else{

echo "이용하실 수 없습니다";

}
?>
[/code]

이렇게해선는 안되네요..

댓글 1개

if ($member[mb_id]) { ...로 해보세요
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
10-04-27 조회 1,655
10-04-26 조회 1,549
10-04-26 조회 1,498
10-04-26 조회 1,517
10-04-26 조회 1,672
10-04-26 조회 1,074
10-04-26 조회 1,677
10-04-26 조회 1,512
10-04-26 조회 1,692
10-04-26 조회 1,672
10-04-26 조회 1,595
10-04-26 조회 1,444
10-04-26 조회 1,663
10-04-26 조회 1,669
10-04-26 조회 1,731
10-04-26 조회 1,650
10-04-26 조회 1,550
10-04-26 조회 1,606
10-04-25 조회 1,650
10-04-25 조회 1,301