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

본문 바로가기
 

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

페이지 정보

작성자 이름으로 검색 댓글 0건 조회 8,047회 작성일 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>

댓글목록

등록된 댓글이 없습니다.