<%@language=vbscript%> <% option explicit %> <% dim strSql, DBConn, RSconn, today, findImg today = date() Set DBConn=Server.CreateObject("ADODB.Connection") DBConn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&server.MapPath("/mdb-database/melzoscuole.mdb") 'DBConn.Open "DBMelzoScuole" set RSconn = Server.CreateObject("ADODB.Recordset") RSconn.ActiveConnection = DBConn strSql = "SELECT * FROM Images" RSconn.Open strSql %> Melzo - scuola statale - Comune di Melzo
logo del Circolo di Melzo

CIRCOLO DIDATTICO
DI MELZO

Via Bologna 14 - tel. 0295737310 - e-mail miee130006@istruzione.it; miee130006@pec.istruzione.it

Ultimo aggiornamento: 4 gennaio 2012

L'artista del giorno

<% findImg= false do until ((RsConn.EOF) or (findImg=true)) if RsConn("InsDate") = today then %> <% findImg=true application ("LastGoodImage") = RsConn("image") Application ("LastGoodDescription") = RsConn("description") Application ("LastGoodAuthor") = RsConn("Author") end if RsConn.movenext loop if ((Rsconn.EOF) and (FindImg=false))then %> <% end if RSconn.close DBConn.close set DBConn = nothing set RSconn = nothing %>
<% response.write "" %>
<% response.write RsConn("Description")&"
"&RsConn("Author") %>
 
<% if ((application("LastGoodImage") = "") or (Application("LastGoodDescription")="") or (Application("LastGoodAuthor")="")) then RsConn.movefirst application("LastGoodImage") = RsConn("image") application("LastGoodDescription") = RsConn("description") application("LastGoodAuthor") = RsConn("Author") end if response.write "" %>
<% response.write Application("LastGoodDescription")&"
"&Application("LastGoodAuthor") %>
 

Ultime news: Lettera dal Presidente Napolitano - Scuole dell'infanzia aperte: invito -
Ultime pubblicazioni: Documenti/Il P.O.F. 2011/2012
Per contattarci: webmaster@melzoscuole.it
Logo Cittą di Melzo biblioteca di Melzo Liceo- Giordano Bruno_Melzo_Cassano www.pianetino.it Valid XHTML 1.0 Strict CSS Valido!