채택완료

글번호

7년 전 3,655

$list[$i][num]

 

게시판 글번호에서

 

글번호가 23이라면

 

여기에 10001을 더해서

 

10024라고 나타나게 하고 싶은데

 

$list[$i][num+10001] 했더니 안되네요,,

어떻게 해야 해요?

|

답변 1개 / 댓글 2개

채택된 답변
+20 포인트

$list[$i][num] + 10001

 

답변에 대한 댓글 2개

감사합니다~

<?php
if ($is_admin) {
echo "<strong><font size=2 color=#FF0000><a href='../bbs/write.php?w=u&bo_table=$bo_table&wr_id={$list[$i][wr_id]}&page={$page}'>";
echo "{$list[$i][num]}+10001";
echo "</a></font></strong>";
} else {
echo "{$list[$i][num]}";
}
?>


이렇게 햇더니
23+10001 이렇게 나타나 버리네요..
감사합니다
$list[$i][num2] = $list[$i][num]+100000; 이렇게 하니 되네요 ㅋ

답변을 작성하려면 로그인이 필요합니다.