salve ho questo script html
<table width="740" border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
<td colspan="7"></td>
</tr>
<tr>
<td colspan="7"><h3><font color="#0099FF">Pre Calcolo</font></h3></td>
</tr>
<tr>
<td width="132"><h3>Precalcolo, prescrittura, prelettura...</h3></td>
<td>Il quaderno operativo “Precalcolo, Prelettura, Prescrittura”
è dedicato ai bambini di 5/6 anni che frequentano l’ultimo
anno della Scuola dell’Infanzia.
Si articola essenzialmente in due parti...</td>
<td width="34"> <h4>[img]../../testi/scolastici/precalcolo-prescrittura/precalcolo02.jpg[/img]</h4></td>
<td width="34"> </td>
<td width="34"> </td>
<td width="50"> <h4></h4></td>
<td width="50"> </td>
</tr>
</table>
in questa struttura grafica debbo inserire questo in asp:
<% 'elenco documenti
Dim objRS, strSQL
strSQL = "SELECT * FROM scuola WHERE " &_
"testo Like '%" & Trim(Request.Form("testo")) & "%' ORDER BY scuola"
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open strSQL, cn, adOpenStatic, adLockReadOnly, adCmdText
Response.Write("Trovati " & objRS.RecordCount & " risultati.
")
Do While Not objRS.EOF
'DA qui la similitudine con la grafica dell'html e qui non ci siamo
<h3>Response.Write objRS("titolo")</h3></td>
<td>Response.Write objRS("testo")</td>
<td width="34"> <h4>[img]IMMAGINE1[/img]</h4></td>
<td width="34"> </td>
<td width="34"> </td>
<td width="50"> <h4></h4></td>
<td width="50"> </td>
</tr>
</table>
objRS.MoveNext
Loop
<table width="740" border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
</tr>
'Chiusura recordset
objRS.Close
Set objRS = Nothing
%>
</table>
</body>
</html>
<% 'Chiusura connessione
cn.Close
Set cn = Nothing
%>
Come strutturare al meglio i campi in questa struttura grafica con questo risultato di ricerca asp????
i campi sono titolo-testo-immagine1-immagine1 coll.
fatemi sapere.
ciao

Rispondi quotando

