테스트 사이트 - 개발 중인 베타 버전입니다

게시판에 자신이 쓴 글을 바로 가기?? 채택완료

더블피디 9년 전 조회 1,777

게시판에 글을 한개만 쓰도록 막았습니다. 

/bbs/wirte.php 

</p><p>// 1건만 등록</p><p>if ($bo_table == "report" && $w == "") {</p><p>   $mygoodscnt = @mysql_result(mysql_query("select count(wr_id) from g5_write_report where mb_id = '${member['mb_id']}' and wr_is_comment = '0'"),0,0); </p><p>   if($mygoodscnt > 0) {</p><p>     alert("리포트는  1건만 가능합니다.", G5_URL);</p><p>   }</p><p>}</p><p>

 

자신이 쓴 글을 수정하려고합니다. 

(물론 검색해서 ..글을 찾아 수정하면 되지만, )

 

글이 점점 많아지면서...첫 페이지가 아닌 다른 페이지로 넘어가면서 글을 찾아야함

 

아래에 특정 버튼(자신글수정)을 눌러 자신글을 수정하도록 하려합니다. 

(자신글이 없으면 "수정할 글이 없습니다." 이렇게 나오면 좋을듯하네요)

 



 

 

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

답변 1개

채택된 답변
+20 포인트
그림자밟기

list.skin.php에 아래 소스 추가 하면 되겠네요.

</p><p><?php</p><p>if($is_member) {</p><p style="margin-left: 40px;">$sql = "select wr_id from $write_table where mb_id = '{$member['mb_id']}' ";</p><p style="margin-left: 40px;">$row = sql_fetch($sql);</p><p style="margin-left: 40px;">if($row['wr_id']) {</p><p style="margin-left: 80px;">echo '<a href="./write.php?bo_table='.$bo_table.'&w=u&wr_id='.$row['wr_id'].'">내글수정하기</a>';</p><p style="margin-left: 40px;">}</p><p>}</p><p>?></p><p>

로그인 후 평가할 수 있습니다

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

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

로그인