최근게시물을 뽑는데요..... > 그누3질답

그누3질답

최근게시물을 뽑는데요..... 정보

그누보드 최근게시물을 뽑는데요.....

본문

최근 게시물소스를 아래와 같이 넣었는데요...에러가 나네요....^^;;;;


 &nbsp; &nbsp; &nbsp; &nbsp;<!-- 최신글 시작 -->
 &nbsp; &nbsp; &nbsp; &nbsp;<?
 &nbsp; &nbsp; &nbsp; &nbsp;$sql = " select * from $cfg[table_board] order by gr_id, bo_table ";
 &nbsp; &nbsp; &nbsp; &nbsp;$result = sql_query_error($sql);
 &nbsp; &nbsp; &nbsp; &nbsp;for ($i=0; $row=mysql_fetch_array($result); $i++) {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo "<table width=100% border=0 cellpadding=1 cellspacing=0 class=tablebg>";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo "<tr><td height=25>&nbsp; <a href='http://imok.or.kr/bbs/bbs/gnuboard.php?bo_table=church_news'><b><font color=555555>$row[bo_subject]</font></b></a></td></tr>";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo "<tr><td>";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;latest('', church_news, 5, 35);
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo "</td></tr></table><p>";
 &nbsp; &nbsp; &nbsp; &nbsp;}
 &nbsp; &nbsp; &nbsp; &nbsp;?>
 &nbsp; &nbsp; &nbsp; &nbsp;<!-- 최신글 끝 -->





에러가 뜨는 부분은...
 &nbsp; &nbsp; &nbsp; &nbsp;$result = sql_query_error($sql);

이부분입니다.

inde.htm 으로 저장을 해서 했는데요...;;;;

그리고요....
24시간안에 올라온 글을 뽑으려면... 어떻게 설정을해야하는건지.....
php화일을 따로 만들어서 불러와야하느건가요?...;;;;

댓글 전체

새로운 글만 보기는 자료실에 가면 .. 관리자님이 올려놓은게 있습니다...
new.php 이라는 파일입니다..
2.60버젼에 맞춰져 있어서
2.62버젼을 사용하신다면.. 수정할 부분이 많이 있더군요..
2.62버젼을 사용한다면.. 내가 드릴수 있습니다..
하도 조잡하게 수정을 하였지만 잘 되긴 합니다..만.. 그래도 필요하면  드리겠습니다..
전체 9,564
그누3질답 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT