<% OpenDataBase %> ::: 바비젼 :::
 
<% '============ 내용 가져오기 ===================== Set Rs = Server.CreateObject("Adodb.RecordSet") SQL = "SELECT top 3 * FROM TB_NEWS Order By REG_DT desc" 'Response.Write SQL Rs.Open SQL,DbCon,1 '============ 내용 가져오기 ===================== if Not Rs.EOF And Not Rs.BOF then Dim nt_i : nt_i = 1 do until Rs.EOF sNo = Rs("sno") title = split_string(Trim(Rs("title")),20) reg_dt = left(Rs("reg_dt"),10) todaydate = GetCurDate() tp_regdt = Replace(reg_dt,"-","") %> <% nt_i = nt_i + 1 Rs.Movenext Loop if nt_i < 3 then for nt_k = nt_i to 3 %> <% next end if Else for nt_k = 1 to 3 %> <% next end if Rs.Close set Rs = nothing %>
[<%=reg_dt%>] <%=title%> <% if todaydate = tp_regdt then %> <% end if %>
 
<% if nt_k = 1 then%>등록된 뉴스가 없습니다.<% else %> <%end if%>
[(주)바비젼] 주소 : 서울시 영등포구 영등포동7가 94-44
(TEL)02-2675-4233 / (FAX)02-2675-4235
copyright (C) 2005 vavision.CO.KR allright reserved.
<% CloseDataBase %>