최근 게시물을 뿌리는 간단한 소스입니다. > MySQL Tip

본문 바로가기
 

최근 게시물을 뿌리는 간단한 소스입니다.

페이지 정보

작성자 이름으로 검색 댓글 0건 조회 8,063회 작성일 05-08-07 16:00

본문


<html>

                        <table cellSpacing="0" cellPadding="2" width="595" bgColor="#9999cc" id="table1">

                                <tr>

                                        <td align="middle" width="595" bgColor="black" colSpan="2" height="15">

                                        <font color="white"><b>최근 게시물을 뿌리는 간단한 소스입니다.</b></font>

                                        </td>

                                </tr>

                                <tr>

                                        <td width="595" bgColor="#eeeeee" colSpan="2" height="9"> </td>

                                </tr>

                                <tr>

                                        <td align="right" width="295" bgColor="#eeeeee">

                                        <p align="left"> 글쓴이 : 강동길</td>

                                        <td width="300" bgColor="#eeeeee">

                                        <p align="left"> 저작권자 이메일 : </td>

                                </tr>

                                <tr>

                                        <td align="right" width="295" bgColor="#eeeeee">

                                        <p align="left"> 출처 :

                                        <a target="_blank" href="http://www.koreaphp.co.kr/tip_board/koreaphp.co.kr">

                                        koreaphp.co.kr</a></td>

                                        <td width="300" bgColor="#eeeeee">

                                        <p align="left"> 작성일 : 2002/04/24 16:20:49</td>

                                </tr>

                                <tr>

                                        <td width="595" bgColor="#eeeeee" colSpan="3">

                                        <p align="right"> </td>

                                </tr>

                                <tr>

                                        <td width="595" bgColor="#eeeeee" colSpan="2">

                                        <p align="left"> 글내용<font color="#6600ff">  본 내용은 HTML 형식으로

                                        쓰여졌습니다. 소스를 보시려면

                                        <input class="button1" onclick="window.open('source_view.php?mode=html&cate=25&no=93','source','width=620,height=550,scrollbars=yes,toolbars=no')" type="button" value="Source View">

                                        버튼을 누르세요.</font></p>

                                        <!-- </td>

                        <td width='300' bgcolor='#EEEEEE' align='right'> -->

                                        </td>

                                </tr>

                                <tr>

                                        <td style="WORD-BREAK: break-all" vAlign="top" width="595" bgColor="white" colSpan="2" height="133">

                                        $que = "select * from 테이블 where 옵션 order by reg_date DESC

                                        limit 5"; <br>

                                        $result=mysql_query($que, $connect); <br>

                                        $total = mysql_affected_rows(); <br>

                                        <br>

                                        for($f = 0 ; $f < $total ; $f++){ <br>

                                        <br>

                                        mysql_data_seek($result,$f); <br>

                                        $infor = mysql_fetch_array($result); <br>

                                        <br>

                                        echo"<a target="_top" href="http://www.koreaphp.co.kr/tip_board/게시판.html?mode=display&num=$infor[0]">$infor[2]</a><br>

                                        <br>

                                        "; <br>

                                        <br>

                                        } <br>

                                        } </td>

                                </tr>

                        </table>



</html>

댓글목록

등록된 댓글이 없습니다.

Total 243건 1 페이지
MySQL Tip 목록
번호 제목 글쓴이 조회 날짜
243 이름으로 검색 7119 08-07
242 이름으로 검색 7128 08-07
241 이름으로 검색 7290 05-14
240 이름으로 검색 7574 08-07
239 이름으로 검색 7717 08-07
238 이름으로 검색 7773 08-07
열람중 이름으로 검색 8064 08-07
236 이름으로 검색 8908 08-06
235 차동박 이름으로 검색 9313 10-21
234 차동박 이름으로 검색 9507 07-20
233 차동박 이름으로 검색 9945 08-07
232 차동박 이름으로 검색 9993 09-12
231 차동박 이름으로 검색 10019 06-28
230 차동박 이름으로 검색 10087 12-27
229 차동박 이름으로 검색 10207 12-27
228 차동박 이름으로 검색 10234 05-27
227 차동박 이름으로 검색 10281 08-04
226 차동박 이름으로 검색 10331 11-02
게시물 검색