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

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


&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화일을 따로 만들어서 불러와야하느건가요?...;;;;
|

댓글 2개

새로운 글만 보기는 자료실에 가면 .. 관리자님이 올려놓은게 있습니다...
new.php 이라는 파일입니다..
2.60버젼에 맞춰져 있어서
2.62버젼을 사용하신다면.. 수정할 부분이 많이 있더군요..
2.62버젼을 사용한다면.. 내가 드릴수 있습니다..
하도 조잡하게 수정을 하였지만 잘 되긴 합니다..만.. 그래도 필요하면 드리겠습니다..
new.php화일을 받아서... 어디에 올리고....
어떻게 불러와야하는건가요?>....;;;;;
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
22년 전 조회 620
22년 전 조회 718
22년 전 조회 560
22년 전 조회 1,011
&&nbsp;
22년 전 조회 768
22년 전 조회 870
22년 전 조회 597
MMando
22년 전 조회 616
22년 전 조회 604
22년 전 조회 652
22년 전 조회 1,033
22년 전 조회 578
22년 전 조회 589
22년 전 조회 654
22년 전 조회 593
22년 전 조회 634
22년 전 조회 587
22년 전 조회 647
22년 전 조회 557
22년 전 조회 676
🐛 버그신고