Me dispongo a hacer la web de una inmobiliaria...la estoy montando en asp con bd de access.
tengo este codigo que carga los datos de una promocion de casas en una tabla con varios datos.
Lo que quiero hacer es que me liste todos las promociones de casas cojiendo la tabla como referencia....
Como se haria????
Código :
<body> <div id="Layer2"><img src="img/telefono.png" width="189" height="141" /></div> <div id="Layer3"> <table width="425" height="477" border="0" cellpadding="0" cellspacing="1"> <tr> <th background="img/marcocasa.png" scope="col"> <table width="425" border="0" cellspacing="1" cellpadding="0"> <tr> <th class="textodestacado" scope="col">Noticias</th> </tr> <tr> <td><table width="417" height="53%" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <th width="516" height="117" scope="col"><table width="323" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <%SQL="SELECT * FROM promos ORDER BY id DESC;" set rs=oConn.Execute(SQL)%> <th width="164" scope="col"><div align="center"><font color="#00FF99"> <a href="img/fotos/promo/<%=rs("foto1")%>" target="_blank"><img src="img/fotos/promo/<%=rs("foto1")%>" alt="Click para ampliar" width="150" height="113" border="1" /></a> </font><font color="#00FF99"> </font></div></th> <th width="12" scope="col"> </th> <th width="152" scope="col"><div align="center"><font color="#00FF99"><a href="img/fotos/promo/<%=rs("foto2")%>" target="_blank"><img src="img/fotos/promo/<%=rs("foto2")%>" alt="Click para ampliar" width="150" height="113" border="1" /></a></font></div></th> </tr> </table></th> </tr> <tr> <td><table width="399" border="0" align="center" cellpadding="1" cellspacing="0" bordercolor="00743d"> <tr> <td width="27%" height="18" nowrap="nowrap" class="textodestacado"><div align="right"><strong>Zona:</strong></div></td> <td colspan="2" bgcolor="#387522" class="textocomun"><div align="center" class="textocomun"> <div align="left"><%=rs("zona")%> </div> </div></td> <td width="15%" nowrap="nowrap"><div align="center" class="textodestacado"><strong>Id:<span class="textocomun"><%=rs("id")%></span> </strong></div></td> <td width="9%" rowspan="3"><a href="noticias.asp?id=<%=rs("id")%>"><img src="img/masinfo.png" alt="Click para interesarse por este inmueble" width="33" height="90" border="0" /></a></td> </tr> <tr> <td valign="top"><div align="center" class="textodestacado"> <div align="right"><strong>Descripción:</strong></div> </div></td> <td colspan="3" class="textocomun"><div align="center"> <table width="264" border="0" cellpadding="0" cellspacing="1"> <tr> <th bgcolor="#387522" class="textocomun" scope="col"><div align="left"><%=rs("descripcion")%></div></th> </tr> </table> </div></td> </tr> <tr> <td height="18"><div align="center" class="textodestacado"> <div align="right"><strong>Precio:</strong></div> </div></td> <td colspan="3"><table width="266" border="0" cellpadding="0" cellspacing="1"> <tr> <th bgcolor="#387522" class="textocomun" scope="col"><div align="left"><%=rs("precio")%><span class="Estilo1">€</span></div></th> </tr> </table> <div align="center" class="textocomun"></div></td> </tr> <tr> </tr> </table></td> </tr> <tr> <td height="19"> </td> </tr> </table></td> </tr> </table></th> </tr> </table> </div> <div id="Layer4"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="44"> <param name="movie" value="img/menu.swf" /> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <embed src="img/menu.swf" width="600" height="44" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed> </object> </div> <div id="Layer5"><img src="img/logo.png" width="113" height="101" /></div> <div id="Layer6"><img src="img/nuevaspromos.png" width="268" height="29" /></div> <p> </p> <p> </p> <div id="Layer1"> <table width="754" height="494" border="0" cellpadding="0" cellspacing="1"> <tr> <th background="img/fondos/1.png" scope="col"> </th> </tr> </table> </div> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> </body>
Gracias a todos tanto si me has ayudado como si no!
dewsaa