<% Set Conexao = Server.CreateObject("ADODB.Connection") Conexao.Open "DBQ=C:\Inetpub\wwwroot\teste\db\cadastro.mdb;Driver={Microsoft Access Driver (*.mdb)};" ComandoSQL = "SELECT * FROM Tabela" Set bd = Conexao.Execute(ComandoSQL) %>
Código Inteiro
<html> <head> <title>Parceiros</title> </head> <body> <center> <p><table border="0" cellpadding="0" cellspacing="0" width="100%" dwcopytype="CopyTableRow"> <tr> <td bgcolor="<% =strHeadCellColor %>" align="center"><font face="<%= strDefaultFontFace %>" size="<%= strDefaultFontSize %>" color="<%= strHeadFontColor %>"><b>PARCEIROS</b><br> </font></td> </tr> </table> <br> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <% Set Conexao = Server.CreateObject("ADODB.Connection") Conexao.Open "DBQ=C:\Inetpub\wwwroot\teste\db\cadastro.mdb;Driver={Microsoft Access Driver (*.mdb)};" ComandoSQL = "SELECT * FROM Tabela" Set bd = Conexao.Execute(ComandoSQL) %> <% do while not bd.eof %> <tr> <td> <div align="center"><font face="Arial" size="2"><b><%=bd("Nome")%></b></font></div> </td> </tr> <tr> <td> <div align="center"><font face="Arial" size="2"><b><img src="<%=bd("Imagem")%>"></b></font></div> </td> </tr> <tr> <td height="11"> <div align="center"> </div> </td> </tr> <% bd.movenext loop %> </table> </center> </body> </html>