최신글 뽑아와서 링크를 걸었는데 없는 페이지라고 나와요 정보
최신글 뽑아와서 링크를 걸었는데 없는 페이지라고 나와요본문
<tr height='26'>
<td width='120'>
<a href='../gnuboard4/board.php?bo_table=notice&wr_id=$info_list[wr_id]' target='main'>
$info_list[wr_subject]
</a></td>
</tr>
위에께 소스 입니다.
링크를 걸었는데 자꾸 없는 페이지라고 나오네요..
어느부분을 수정을 해야 하나요?
<td width='120'>
<a href='../gnuboard4/board.php?bo_table=notice&wr_id=$info_list[wr_id]' target='main'>
$info_list[wr_subject]
</a></td>
</tr>
위에께 소스 입니다.
링크를 걸었는데 자꾸 없는 페이지라고 나오네요..
어느부분을 수정을 해야 하나요?
댓글 전체
html과 php 구문을 구분없이 사용하셔서 문제가 된 듯 합니다.
html안에서 php 변수등을 사용하실 때는 <?=$변수명?> 형식으로 사용해 보세요.
위의 구문을 바꾸어보면..
<tr height='26'>
<td width='120'>
<a href='../gnuboard4/board.php?bo_table=notice&wr_id='<?=$info_list[wr_id]?>' target='main'>
<?=$info_list[wr_subject]?>
</a></td>
</tr>
이렇게 되겠네요.
html안에서 php 변수등을 사용하실 때는 <?=$변수명?> 형식으로 사용해 보세요.
위의 구문을 바꾸어보면..
<tr height='26'>
<td width='120'>
<a href='../gnuboard4/board.php?bo_table=notice&wr_id='<?=$info_list[wr_id]?>' target='main'>
<?=$info_list[wr_subject]?>
</a></td>
</tr>
이렇게 되겠네요.