Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 18 su 18
  1. #11
    Si quello è il codice di ricerca.asp,

    Il probl. è che se io vado a cliccare sul pettorale 12 (esempio) vorrei che sotto alla foto aperta, apparissero anche tutti i collegamenti alle foto con il numero 12. Quindi dato che nel modulo di ricerca se cerco il valore 12 mi appaiono tutte le foto con il pettorale n. 12 ho pensato che riuscendo a modificare il codice della pagina di ricerca potrei fare ciò che mi serve, ma non so se è possibile farlo e nè come farlo.

    Ciao Ciao Andrea.

  2. #12
    Adesso ci do un'occhiata

  3. #13
    Si Mitttico, scusa ma non avevo letto il post precedente, il ragionamento che hai fatto prima è perfetto.

    Vorrei appunto che se clicco su 'Pettorale n.10a ' mi deve uscire la foto relativa più
    Pettorale n.10+
    Pettorale n.10++
    Pettorale n.10+++
    Pettorale n.10++++

    Esatto, ma io non so come fare.

  4. #14
    che codice hai in fotografie.asp?
    Secondo me è questa la pagina che devi modificare.

  5. #15
    set libro=conn.execute("select * from Libri where idlibro="& int(request.QueryString("idlibro")))
    set categoria=conn.execute("select * from Categorie_libro where idcategoria=" & libro.fields("idcategoria"))
    %>
    <tr>
    <td><font size="+1">Eventi Sportivi &gt; <%=categoria.fields("nome")%> </font></td>
    </tr>
    <tr>
    <td height="1" BGCOLOR="#999999">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%set autore=conn.execute("select * from Scrittori where idscrittore="& int(libro.fields("idscrittore")))%>
    <tr>
    <td> <%=libro.fields("titolo")%> <font size="1">(<a href="dettaglio_manifestazioni.asp?idscrittore=<%= autore.fields("idscrittore")%>"><%=autore.fields(" nome") &" "& autore.fields("cognome")%></ a>)</font></td>
    </tr>
    <tr>
    <td height="1" BGCOLOR="#999999">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top"><table width="97%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><font size="1">Codice per l'acquisto: <%=libro.fields("abstract")%> </font></td>
    </tr>
    </table>
    </td>
    <td valign="top"><%if libro.fields("foto_copertina")<>"" then%>[img]contenuti/<%=libro.fields([/img]"><%end if%> </td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="1" BGCOLOR="#999999">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="3"></td>
    </tr>
    <tr>
    <td height="3">
    <p style="text-align: center">
    Acquista Fotografia
    </td>
    </tr>
    <tr>
    <td height="3">
    SEGNA IL CODICE DELLA TUA FOTO SU UN FOGLIO PER PROMEMORIA</td>
    </tr>
    <tr>
    <td height="3">
    </td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%set altrilibri=conn.execute("select * from Libri where idscrittore="& autore.fields("idscrittore"))
    if altrilibri.eof=false then%>

    <tr>
    <td><font size="1">Altre foto</font><font size="1">:</font></td>
    </tr>
    <tr>
    <td valign="top"><font size="1">[b]">[img]contenuti/<%=autore.fields([/img][/COLOR] " border="0" align="left">
    <%do while not altrilibri.eof
    if altrilibri.fields("idlibro")<>int(request.querystr ing("idlibro")) then%>

    [img]images/freccia2.gif[/img] &amp;idlibro=<%=altrilibri.fields("idlibro")%>"><% =altrilibri.fields("titolo")%>

    <%end if
    altrilibri.movenext
    loop%></[/COLOR] strong></font>
    </td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%end if
    altrilibri.close
    set altrilibri=nothing%>
    </tr>
    <% set ricerca=conn.execute("select * from Libri where ricerca="& ricerca.fields("numero"))%>
    <% if ricerca.eof=false then%>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%set libro=conn.execute("select * from Libri where (titolo like '%"& ricerca &"%') or (abstract like '%"& ricerca &"%')")%> <tr>
    <td><font size="1">Fotografie correlate:</font></td>
    </tr>
    <%if libro.eof=false then
    do while not libro.eof%>
    <tr>
    <td><font size="1">[img]images/freccia2.gif[/img] &amp;idlibro=<%=libro.fields("idlibro")%>"><%=libr o.fields("titolo")%>[/COLOR] </font></td>
    </tr>
    <%libro.movenext
    loop
    else%>
    <tr>
    <td><font size="1">Nessun risultato trovato!</font></td>
    </tr>
    <%end if%> <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="1" BGCOLOR="#999999">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%libro.close
    set libro=nothing%>
    <%end if%>

    questo è il codice di fotografie.asp

  6. #16
    Prova così:
    dalla pagina ricerca.asp, oltre ai paremetri idcategoria e idLibro, attacca alla querystring anche l'id del gruppo di foto, una cosa di questo genere:
    http://www.capoliverionline.it/photo...2&idGruppo=nr.

    Nella pagina fotografie.asp dovrebbe diventare:

    [CODE]

    iDlibro = request.QueryString("idlibro")
    iDGruppo = request.QueryString("idGruppo")



    set libro=conn.execute("select * from Libri where idlibro="& iDlibro & "AND idGruppo="& iDGruppo)

    set categoria=conn.execute("select * from Categorie_libro where idcategoria=" & libro.fields("idcategoria"))
    %>
    <tr>
    <td><font size="+1">Eventi Sportivi &gt; <%=categoria.fields("nome")%></font></td>
    </tr>
    <tr>
    <td height="1" BGCOLOR="#999999">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%set autore=conn.execute("select * from Scrittori where idscrittore="& int(libro.fields("idscrittore")))%>
    <tr>
    <td><%=libro.fields("titolo")%> <font size="1">("><%=autore.fields("nome") &" "& autore.fields("cognome")%> )</font></td>
    </tr>
    <tr>
    <td height="1" BGCOLOR="#999999">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top"><table width="97%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><font size="1">Codice per l'acquisto: <%=libro.fields("abstract")%></font></td>
    </tr>
    </table>
    </td>
    <td valign="top"><%if libro.fields("foto_copertina")<>"" then%>[img]contenuti/<%=libro.fields([/img]"><%end if%></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="1" BGCOLOR="#999999">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="3"></td>
    </tr>
    <tr>
    <td height="3">
    <p style="text-align: center">
    Acquista Fotografia
    </td>
    </tr>
    <tr>
    <td height="3">
    SEGNA IL CODICE DELLA TUA FOTO SU UN FOGLIO PER PROMEMORIA</td>
    </tr>
    <tr>
    <td height="3">
    </td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%set altrilibri=conn.execute("select * from Libri where idscrittore="& autore.fields("idscrittore"))
    if altrilibri.eof=false then%>
    <tr>
    <td><font size="1">Altre foto</font><font size="1">:</font></td>
    </tr>
    <tr>
    <td valign="top"><font size="1">">[img]contenuti/<%=autore.fields([/img]" border="0" align="left">
    <%do while not altrilibri.eof
    if altrilibri.fields("idlibro")<>int(request.querystr ing("idlibro")) then%>
    [img]images/freccia2.gif[/img] &idlibro=<%=altrilibri.fields("idlibro")%>"><%=alt rilibri.fields("titolo")%>

    <%end if
    altrilibri.movenext
    loop%>
    </font>
    </td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%end if
    altrilibri.close
    set altrilibri=nothing%>
    </tr>
    <% set ricerca=conn.execute("select * from Libri where ricerca="& ricerca.fields("numero"))%>
    <% if ricerca.eof=false then%>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%set libro=conn.execute("select * from Libri where (titolo like '%"& ricerca &"%') or (abstract like '%"& ricerca &"%')")%>
    <tr>
    <td><font size="1">Fotografie correlate:</font></td>
    </tr>
    <%if libro.eof=false then
    do while not libro.eof%>
    <tr>
    <td><font size="1">[img]images/freccia2.gif[/img] &idlibro=<%=libro.fields("idlibro")%>"><%=libro.fi elds("titolo")%></font></td>
    </tr>
    <%libro.movenext
    loop
    else%>
    <tr>
    <td><font size="1">Nessun risultato trovato!</font></td>
    </tr>
    <%end if%>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="1" BGCOLOR="#999999">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%libro.close
    set libro=nothing%>
    <%end if%>

    L'id delle foto è nella tabella libri giusto?

  7. #17
    Ciao Mitttico, grazie mille per la tua disposizione.

    Scusa ma il codice che ti ho inviato era quello in cui ci facevo le prove, questo è quello esatto, è l'idgruppo si trova nella tabella Libri rinominata in idgruppo.
    [code]
    conn.open StrConnect
    set libro=conn.execute("select * from Libri where idlibro="& int(request.QueryString("idlibro")))
    set categoria=conn.execute("select * from Categorie_libro where idcategoria=" & libro.fields("idcategoria"))
    %>
    <tr>
    <td><font size="+1">Eventi Sportivi &gt; <%=categoria.fields("nome")%></font></td>
    </tr>
    <tr>
    <td height="1" BGCOLOR="#999999">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%set autore=conn.execute("select * from Scrittori where idscrittore="& int(libro.fields("idscrittore")))%>
    <tr>
    <td><%=libro.fields("titolo")%> <font size="1">("><%=autore.fields("nome") &" "& autore.fields("cognome")%>)</font></td>
    </tr>
    <tr>
    <td height="1" BGCOLOR="#999999">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top"><table width="97%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><font size="1">Codice per l'acquisto: <%=libro.fields("abstract")%></font></td>
    </tr>
    </table>
    </td>
    <td valign="top"><%if libro.fields("foto_copertina")<>"" then%>[img]contenuti/<%=libro.fields([/img]"><%end if%></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="1" BGCOLOR="#999999">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="3"></td>
    </tr>
    <tr>
    <td height="3">
    <p style="text-align: center">
    Acquista Fotografia
    </td>
    </tr>
    <tr>
    <td height="3">
    SEGNA IL CODICE DELLA TUA FOTO SU UN FOGLIO PER PROMEMORIA</td>
    </tr>
    <tr>
    <td height="3">
    </td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%set altrilibri=conn.execute("select * from Libri where idscrittore="& autore.fields("idscrittore"))
    if altrilibri.eof=false then%>
    <tr>
    <td><font size="1">Altre foto</font><font size="1">:</font></td>
    </tr>
    <tr>
    <td valign="top"><font size="1">">[img]contenuti/<%=autore.fields([/img]" border="0" align="left">
    <%do while not altrilibri.eof
    if altrilibri.fields("idlibro")<>int(request.querystr ing("idlibro")) then%>
    [img]images/freccia2.gif[/img] &amp;idlibro=<%=altrilibri.fields("idlibro")%>"><% =altrilibri.fields("titolo")%>

    <%end if
    altrilibri.movenext
    loop%>
    </font>
    </td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <%end if
    altrilibri.close
    set altrilibri=nothing%>
    <tr>
    <td height="1" background="images/tratteggio_orizzontale.gif">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    <tr>
    <td height="3">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    <td width="1" bgcolor="#000000">[img]images/puntino_trasparente.gif[/img]</td>
    </tr>
    </table>
    <%
    libro.close
    set libro=nothing
    autore.close
    set autore=nothing
    categoria.close
    set categoria=nothing
    conn.close
    set conn=nothing%>
    </body>
    <map name="Map">
    <area shape="rect" coords="21,27,207,80" href="default.asp">
    </map>
    </html>

    ho provato il tuo esempio, e mi da l'errore sulla select ("select * from Libri where idlibro="& iDlibro & "AND idGruppo="& iDGruppo)

    Ciao e grazie

  8. #18
    Scusa ho dimenticato int

    ("select * from Libri where idlibro="& int(iDlibro) & "AND idGruppo="& int(iDGruppo) )


Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.