Ver Mensaje Individual
  #7 (permalink)  
Antiguo 01/04/2007, 16:12
tocalasam
 
Fecha de Ingreso: julio-2003
Ubicación: Barcelona
Mensajes: 142
Antigüedad: 21 años, 9 meses
Puntos: 1
Re: vinculacion entre paginas

casi lo he conseguido, pero solo me lista un resultado.
A la tabla le he añadido el campo telefono



Código:
<%
Set con = Server.CreateObject("ADODB.Connection")
Con.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/cgi-bin/prueba.mdb"))
sql = "SELECT * FROM (Tiendas INNER JOIN Ciudad ON Tiendas.id = Ciudad.id) INNER JOIN Comunidad ON Tiendas.id = Comunidad.id WHERE Comunidad.id=" & Request.QueryString("id") & ""
set result = Con.Execute(sql)
%>





<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<html>

<head>
</head>
<body>


  <center>
  <%=result("Nombre")%> <BR>
  <%=result("telefono")%> <BR>


      



</body>

</html>
¿Alguien me puede echar un cable?