|
|
 |
 |
| |
<%
Set RS = SERVER.CreateObject("ADODB.Recordset")
SQL = "SELECT top 5 Sid,Subject,Stime FROM dtnot "
SQL = SQL & " ORDER BY Sid DESC"
RS.Open SQL, ConnString
IF (RS.BOF and RS.EOF) Then
Response.Write " | "
Response.Write "No data."
Response.Write " | "
Else
Do while (NOT RS.EOF)
'ÀÌ ÆäÀÌÁö¿¡¼ »ç¿ëÇÒ ÇʵåÀÇ °ªÀ» ÀüºÎ ÇѲ¨¹ø¿¡ °¡Á®¿Í¼ º¯¼ö¿¡ ´ëÀÔÇØ µÐ´Ù.
Sid=RS("sid")
Subject=RS("subject")
Stime=RS("stime")
%>
.gif) |
<%=subject%><%=aa%> |
<%
RS.MoveNext
Loop
End if
RS.CLose
Set RS=nothing
%>
|
 |
| |
<%
Set RS = SERVER.CreateObject("ADODB.Recordset")
SQL = "SELECT top 5 Sid,Subject,Stime FROM dtnews "
SQL = SQL & " ORDER BY Sid DESC"
RS.Open SQL, ConnString
IF (RS.BOF and RS.EOF) Then
Response.Write " | "
Response.Write "No data."
Response.Write " | "
Else
Do while (NOT RS.EOF)
'ÀÌ ÆäÀÌÁö¿¡¼ »ç¿ëÇÒ ÇʵåÀÇ °ªÀ» ÀüºÎ ÇѲ¨¹ø¿¡ °¡Á®¿Í¼ º¯¼ö¿¡ ´ëÀÔÇØ µÐ´Ù.
Sid=RS("sid")
Subject=RS("subject")
Stime=RS("stime")
%>
 |
<%=subject%><%=aa%> |
<%
RS.MoveNext
Loop
End if
RS.CLose
Set RS=nothing
%>
|
|
 |
|
 |
|
|