Codice PHP:
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("mdb-database/artigianato.mdb")
Set Rs = Server.CreateObject("ADODB.Recordset")
sql = "select * from articoli where categoria ="&categoria
Rs.Open sql, Conn, 1, 3
%>
<%
If page = "" then
page = (rs.PageCount)
End if
Rs.PageSize = perpage
Rs.AbsolutePage = page
%>
<div>
<table style="width: 100%;">
<%
cont=0
For i = 1 to perpage
If Not Rs.EOF then
cont=cont+1
%>
</p>
<%if cont=1 then%>
<tr>
<%end if%>
<td>
<table width="151" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#990000">
<tbody>
<tr>
<td valign="top" width="147" align="center" height="132">
[img]file/immagini/<%=Rs([/img]" width="147" height="132">
</td>
</tr>
<tr>
<td valign="center" bgcolor="#990000" height="19">
<div align="center"><span class="Stile2">
<font color="#FFFFFF">
<%=rs("nome")%>
</font></span> </div></td>
</tr>
<tr>
<td height="3"> </td>
</tr>
<tr>
<td valign="top" align="left"> <p class="Stile32" align="center">Cod:
<%=rs("codice")%>
</p></td>
</tr>
<tr>
<td height="5"> </td>
</tr>
<tr>
<td valign="top" align="left"> <p class="Stile1" align="center">
<%=rs("descrizione")%>
</p></td>
</tr>
</tbody>
</table>
</td>
<%if cont=perpage then%>
</tr>
<%
cont=0
end if%>
<%
Rs.MoveNext
end if
next
%>
</table>
</div>
<p align="center">
</p>
</div>
</td>
</tr>
</table>