Carissimi,
utilizzo questo script per paginarmi in modo orizzontale i dati dal db:
Però ogni tabella la manda d'accapo e quindi l'impagina in verticale, come maicodice:<% sql = "SELECT * FROM editoria WHERE id LIKE '%" & id & "%' order by priorita asc" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open sql, Conn, 3, 3 %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Nuova pagina 1</title> </head> <body> <table border="1" width="269" cellspacing="1" id="table2" height="115"> <% i = 0 do while not rs.eof if i = 0 then%> <tr> <%end if%> <tr> <td width="89" rowspan="3"> <p align="center"> [img]../public/admin/img_libri/<%=rs.Fields([/img]" width="64" height="60"> </td> <td width="173" height="26"> <% if rs.fields("novita") = "si" then %> [img]../../immagini/icona_novita.gif[/img] <% else end if %> </td> </tr> <tr> <td width="173" height="43" valign="top"> <u><%=rs.Fields("titolo")%></u></td> </tr> <tr> <td width="173"> <font size="1" face="Verdana" > <% if (TRIM(rs.Fields("sconto"))<> "") or (TRIM(rs.Fields("totale"))<> "")then %><strike><%=rs.Fields("prezzo")%></strike> - <%=rs.Fields("sconto")%> - <%=rs.Fields("totale")%> <% else %> <%=rs.Fields("prezzo")%> <% end if %> </td> </tr> <% rs.movenext i = i + 1 if i = 5 then i = 0 %> </tr> <%end if loop %> </table> <% rs.close %> </body> </html>
Ecco il link dove vedere lo script in esecuzione:
Link
Grazie per l'aiuto.
G.

Rispondi quotando
)

