Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/10/2004, 03:53
sqa212
 
Fecha de Ingreso: mayo-2003
Mensajes: 866
Antigüedad: 22 años
Puntos: 0
¿Como desplegarias los datos para que te aparecira un autor y debajo todos los productos en los que ha participado independientemete de si iba como idautor o idautor2?
La consulta esta ahora mismo asi:
set rscatlist=db.Execute("SELECT autores.*, productos.* FROM autores INNER JOIN productos ON (autores.idautor=productos.idautor2) Or (autores.idautor=productos.idautor) where productos.idautor2<>1")
if rscatlist.eof then
else
idautor=rscatlist("idautor")
Nombreautor=rscatlist("Nombreautor")
apellidosautor=rscatlist("apellidosautor")
idproducto=rscatlist("idproducto")
titulo=rscatlist("titulo")

end if
%>
<%
while not rscatlist.eof
%><h2><% = rscatlist("apellidosautor") %>&nbsp;<% = rscatlist("nombreautor") %></h2>
<%=rscatlist("titulo") %>

<%
rscatlist.movenext

if not (rscatlist.eof) Then
%>
<%=rscatlist("titulo") %>
<%
rscatlist.movenext
end if
if not (rscatlist.eof) Then
%>
<br>
<font face="helvetica" size="2" color="<%= colortexto %>">
<%=rscatlist("titulo") %>
<br>
<%
rscatlist.movenext
end if%>
<%
wend
%>