%@ LANGUAGE=VBScript%> <% Session.LCID = 1046 Response.Expires = 0 Response.ExpiresAbsolute = 0 ' Internet Explorer Response.AddHeader "pragma", "no-cache" ' Netscape Dim conpas, rspas, sSql, cnpath Dim strNoRec Dim titulo, texto, txtlink, link, qimg1, img2, img3 set conpas = Server.CreateObject("adodb.connection") cnpath=server.mappath("/") cnpath=left(cnpath, len(cnpath)-3) & "dados\dados.mdb" conpas.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & cnpath sSql = "SELECT * FROM destaques WHERE id = " & Request.QueryString("id") & ";" Set rspas = conpas.Execute(sSql) If NOT (rspas.EOF AND rspas.BOF) Then titulo = rspas("titulo") texto = rspas("texto") txtlink = rspas("txtlink") link = rspas("link") img1 = rspas("img1") img2 = rspas("img2") img3 = rspas("img3") alt1 = rspas("alt1") alt2 = rspas("alt2") alt3 = rspas("alt3") strNoRec = 0 Else strNoRec = 1 End If %>
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CVI-Rio
- Centro de Vida Independente do Rio de Janeiro
|