Tabelle con contenuto dinamico

grottafelix

Utente Attivo
5 Mar 2003
2.410
2
38
46
Parco chiuso -
www.girsms.com
Ragazzi io ho questo codice html per una tabella:



code:--------------------------------------------------------------------------------
<td>
<table width="165" cellspacing="0" cellpadding="0" border="0" height="26">
<tr>
<td rowspan="2" width="10" height="26">
<img border="0" src="47.jpg" width="40" height="28"></td>
<td width="125" bgcolor="#D6E8EF" class="tl" height="19">
<div align="center" class="boxtitle"><b>
<font face="Verdana" size="1" color="#4F9CB9">Uso</font></b></div>
</td>
<td rowspan="2" width="26" height="26">
<img border="0" src="destro.jpg" width="28" height="31"></td>
</tr>
<tr>
<td width="113" bgcolor="F9F9F9" height="7">
<img src="spacer.gif" width="1" height="12"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="165" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="10"> </td>
<td background="panelbg.gif" width="155">
<table width="149" cellspacing="0" cellpadding="0"
background="spacer.gif" align="center" height="81">
<tr bgcolor="F9F9F9">
<td width="137" height="7" bgcolor="#FFFFFF">
<p align="center">
<font color="#FFFFFF" size="1">.</font></td>
</tr>
<tr bgcolor="F9F9F9">
<td width="137" height="7" bgcolor="#FFFFFF"> <p align="center">
</td>
</tr>
<tr bgcolor="F9F9F9">
<td width="137" height="7" bgcolor="#FFFFFF">
<p align="center">
<font color="#FFFFFF" size="1">.</font></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="2">
<table width="165" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="45"><img src="tl_04.gif" width="45" height="11"></td>
<td width="118" background="bottombg.gif">
<img src="bottombg.gif" width="1" height="11"></td>
<td width="10"><img src="tl_05.gif" width="26" height="11"></td>
</tr>
</table>
</td>

--------------------------------------------------------------------------------


vorrei che il risultato di ogni query string venga inglobato in quetsa tabella.
Siccome la pagina asp da diversi risultato, darà diverse tabelle uguali ma maturalmente con risultato diverso.
Lo script è questo:


code:--------------------------------------------------------------------------------
<%
while not rs.EOF
If rs("Immagine_small") <> "" Then
%>
a href="scheda.asp?id=<%=rs("id")%>">
<img src="<%=rs("Immagine_small")%>"></a>
<%
End If
rs.MoveNext
wend
%>

--------------------------------------------------------------------------------


allora io ho fatto cosi:


code:--------------------------------------------------------------------------------
<%
while not rs.EOF
If rs("Immagine_small") <> "" Then
%>
<table width="165"....
......
<td width="137" height="7" bgcolor="#FFFFFF"> <p align="center">
<a href="schedaoggetto.asp?id=<%=rs("id")%>">
<img src="<%=rs("Immagine_small")%>"></a>
</td>
</tr>
....

...
--------------------------------------------------------------------------------


Tutto bene tranne che le tabelle me le mette una sotto l'altra!!!
A me servono una a fianco all'altra!!
Dove sbaglio??
 

Discussioni simili