Ma come lo integro?
Oltre che ai campi data dove altro ce ne un altro che indica la categoria però, il problema di questo campo è che ogni tot tempo si aggiunge una categoria nuova.
Ecco il codice:
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>eventi</title>
</head>
<body>
<%
Set conn=Server.CreateObject("ADODB.Connection")
conn.open = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/mdb-database/db.mdb")
%>
<%
sql = "SELECT * FROM eventi" <-- qui ci dovrebbe essere un <select> che mi collega ad una tabella solo con le categorie
%>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, conn ,3,3
%>
<div align="center">
<table border="1" cellspacing="0" style="margin-bottom: 15px; margin-left: 5px; margin-right: 5px;">
<tr class="titoli">
<td scope="col" style="width: 100px;">Data:</td>
<td scope="col" style="width: 100px;">Dove:</td>
<td scope="col" style="width: 800px;">Altro:</td>
</tr>
<%
do while not rs.eof
%>
<tr class="dati">
<td><% response.write rs("data") %></td> <--- invece qui mi deve visualizzare
<td><% response.write rs("dove") %></td> <--- i record della categoria sopra
<td><% response.write rs("altro") %></td> <--- scelta in qualche modo
</tr>
<%
rs.movenext
loop
rs.Close
set rs = Nothing
conn.Close
set conn = Nothing
%>
</table>
</div>
</body>
</html>