|
|
|
|
Á¤¼ö / 2000-11-03 / ¿ÀÀü 11:31:16 / 203.230.248.195
Á¶È¸¼ö : 122
|
[Áú¹®] »óÀ§ ´Ù¼¸°³ÀÇ ·¹Äڵ常... |
> 俵´ÔÀÇ °Ô½ÃÆÇÀ» »ç¿ëÇÏ°í Àִµ¥
> ¸ÞÀÎÆäÀÌÁö¿¡ °Ô½ÃÆÇ¿¡ ¿Ã¶ó¿Â ±ÛµéÀ»
> ¾à 5°³Á¤µµ º¸¿©Áö°Ô ÇÏ°í ½Í½À´Ï´Ù.
> ±×·¯´Ï±î ÃÖ±Ù ±Û¸®½ºÆ®ÀÇ »óÀ§ 5°³¸¸ Áö¼ÓÀûÀ¸·Î
> ÀÚµ¿À¸·Î ¾÷µ¥ÀÌÆ® µÇ´Â °ÅÁÒ
> ¾Ë·ÁÁÖ¼¼¿ä..
>
-----------------------------------------------------------
Á¦°¡ »ç¿ëÇÑ ÄÚµå ÀÔ´Ï´Ù..
Âü°íÇϼ¼¿ä...
³¯Â¥ ºÎºÐÀº ÀϺη¯ ª°Ô ÁÙ¿©¼ Ç¥±âÇÏ¿´½À´Ï´Ù..
Á¦¸ñ ¶ÇÇÑ ¸¶Âù°¡Áö±¸¿ä...
¼ö°íÇϼ¼¿ä...
======================================================================
<%
Set DbCon=Server.CreateObject("ADODB.Connection")
DbCon.Open "???","???","???"
Set Rs1=Server.CreateObject("ADODB.Recordset")
query1="SELECT TOP 5 C_Index_PIN, C_Name_N, C_Email_A, C_Subject_N, C_Depth_N, C_Approval_N, C_Opposition_N, C_Date_N, C_Reference_N FROM news ORDER BY C_Class_N DESC, C_Order_N ASC"
Rs1.CursorType=1
Rs1.Open query1, DbCon
'»óÀ§ ´Ù¼¸°³ÀÇ ·¹Äڵ常 ºÒ·¯ ¿É´Ï´Ù.
N=Rs1.RecordCount
'·¹ÄÚµå¼ö¸¦ üũÇÏ´Â º¯¼öÀÔ´Ï´Ù..
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<% For i=1 to N
If Rs1.eof then
Exit For
End If
varDate=CDate(Rs1("C_Date_N"))
varMonth=Month(varDate)
varDay=Day(varDate)
If varMonth<10 then
varMonth="0"&varMonth
end If
If varDay<10 then
varDay="0"&varDay
end If
varSubject=Rs1("C_Subject_N")
If Len(varSubject)>25 then
varSubject=Left(varSubject,25)&"..."
end If
%>
<tr>
<td width="81%"> ¡Ý
<a href="../../bbs/board/mess.asp?code=news&P_Index=<%=Rs1("C_Index_PIN")%>"><%=varSubject%></a></td>
<td width="18%"> <font size="2" color="#666666">[<%=varMonth%>-<%=varDay%>]</font></td>
</tr>
<%
Rs1.moveNext
Next
Set Rs1=Nothing
DbCon.Close
%>
</table>
======================================================================
|
|
|
|