Salve a tutti,
spero di essere chiaro (ma già il descrivere il mio problema è difficile per me concettualmente):
sto costruendo un sito, legato ad un DB Access, che mi faccia visualizzare un certo numero di pergamene che ho già classificato in precedenza. Il tutto funziona bene. Solo vorrei, ma non riesco a farlo, che quando clicco sulla persona-autore del documento, mi spuntino anche tutti gli ID degli altri records in cui la stessa persona risulta essere l'autore. Credo che la cosa migliore sia postare il codice che ho finora scritto.
pers.asp:
codice:
<h1>
<%
id=request.querystring("id")
sql="select * from persone where pers =" & id
Set OBJdbConnection=Server.CreateObject("ADODB.Connection")
OBJdbConnection.open"driver={Microsoft Access Driver (*.mdb)};dbq="&server.mapPath("../database/tabulario.mdb")
Set Rs=OBJdbConnection.Execute(sql)
titolo=rs("titolo")
note=rs("note")
pers1=rs("pers1")
pers2=rs("pers2")
pers=rs("pers")
bibl=rs("bibl")
diocesi=rs("diocesi")
crono=rs("crono")
%>
</h1>
</p>
</p>
<title></title>
<table width="770" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td colspan="4" align="left" valign="top"><%=pers1%></td>
</tr>
<tr>
<td width="132" align="left" valign="top" class="tab_doc_grass">Titoli - Funzioni:</td>
<td colspan="2"><%=titolo%></td>
</tr>
<tr>
<td align="left" valign="top" class="tab_doc_grass">Note:</td>
<td colspan="2"><%=note%></td>
</tr>
<tr>
<td align="left" valign="top" class="tab_doc_grass">Risorse sul web</td>
<td width="193"><%=crono%></td>
<td width="425"> <%=diocesi%></td>
</tr>
<tr>
<td height="23" align="left" valign="bottom"><span class="tab_doc_grass">Docc.</span></td>
<td colspan="2">
</td>
</tr>
<tr>
<td height="40" align="left" valign="bottom">[img]../img_p/pre.gif[/img]Indietro</td>
<td colspan="2"></td>
</tr>
</table>
idd.asp (file incluso nel precedente che mi recupera tutti gli ID con identico autore):
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
<style type="text/css">
body,td,th {
font-family: "Book Antiqua";
font-size: 14px;
}
</style>
</head>
<body background="../img_p/sfondo.jpg">
<%
sql="select * from persone where pers1 LIKE '"&pers1&"' "
Set OBJdbConnection=Server.CreateObject("ADODB.Connection")
OBJdbConnection.open"driver={Microsoft Access Driver (*.mdb)};dbq="&server.mapPath("../database/tabulario.mdb")
Set Rs=OBJdbConnection.Execute(sql)
%>
<%=id%>, <%=id%>, <%=id%>
</body>
</html>