Salve a tutti!
ho una pagina asp che recupera dei prodotti in offerta dal database.. fin qui tutto ok!
ho il codice nella pagina che me li mostra a video... fin qui tutto ok!
La visualizzazione però e a cascata, ovvero uno sotto l'altro..
visto che i prodotti da visualizzare sono solo 2 vorrei mostrarli a video uno di fianco all'altro!
vi posto il codice attuale, potreste darmi una mano a modificare l'impaginazione!
Codice PHP:
<%
Set connStat = Server.CreateObject("ADODB.Connection")
Set conn = Server.CreateObject("ADODB.Connection")%>
<%
sql = "SELECT * FROM listino where offhome = True"
set rspromo = conn.Execute (sql)
%>
<%
if not rspromo.eof then
for i = 1 to 2 %>
<table width="201" border="0" cellspacing="0" cellpadding="0" class="testo_rosso">
<tr>
<td width="182" valign="top">
<%
wID=rspromo("ID")
wfoto=(rspromo("foto"))
set fso = server.createobject ("scripting.filesystemobject")
patt = server.mappath("images/" & wfoto)
if not fso.fileexists(patt) then
wfoto="nondisp.gif"
End if
%>
[url='javascript:descrizione(<%=(rspromo("ID"))%>)'][img]images/p<%= wfoto %>[/img]">[/url]</td>
<td rowspan="5" width="19" valign="top"></td>
</tr>
<tr>
<td class="h1" width="182" valign="top"><%=(rspromo("codice"))%></td>
</tr>
<tr>
<td class="h1" width="182" valign="top"><%=(rspromo("articolo"))%></td>
</tr>
<tr>
<td class="h1" width="182" valign="top"><%=(rspromo("descrizione"))%></td>
</tr>
<tr>
<%
StrPrezzo = formatnumber(rspromo("prezzo"),2)
If StrPrezzo <> "" then
StrPrezzo = StrPrezzo
else
StrPrezzo = "N.D."
End If
%>
<td class="h1" width="182" valign="top">
€<s><%=rspromo("barrato")%></s>
<font color="#FF0000"><%=StrPrezzo%></font>
</td>
</tr>
</table><% rspromo.MoveNext
next
end if%>
Grazie!