%
set conexao = server.CreateObject("adodb.connection")
conexao.Open application("odbc")
%>
....
 |
<%
sql = "select * from agenda where status = 'A' order by data desc"
set rsagenda = conexao.Execute(sql)
while not rsagenda.eof
%>
<%=rsagenda("data")%> - <%=rsagenda("titulo")%>, <%=rsagenda("local")%> <%=mid(rsagenda("hora"),1,5)%>
|
<%
rsagenda.movenext
wend
%>
<%
set rsagenda = nothing
set conexao = nothing
%>