Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    Recupero tutti i valori meno che uno...

    Ciao, perchè in questo codice recupero tutti i valori, meno che 'riferimentidofoto'?:

    codice:
    <%
    if err=0 then
    While Not RecordsetArticoli.EOF
    IDArticolo = RecordsetArticoli("ID")
    Codice = RecordsetArticoli("Codice")
    if isnull(Codice) then Codice =""
    Denominazione = RecordsetArticoli("Denominazione")
    InVendita = RecordsetArticoli("InVendita")
    Collezione = RecordsetArticoli("Collezione")
    scad_fattura = RecordsetArticoli("scad_fattura")
    riferimentodifoto = RecordsetArticoli("riferimentodifoto")
    %>
    <TR>
    <TD width="80" style="border-style:solid; border-width:1; " bordercolor="#000000">
    <%if not InVendita then%>
    
    <%end if%>
    <%=Codice%>
    <%if not InVendita then%>
    
    <%end if%>
    </TD>
    <TD width="293" style="border-style:solid; border-width:1; " bordercolor="#000000">
    <%=Denominazione%>
    </TD>
    <TD style="border-style:solid; border-width:1; " bordercolor="#000000" width="143">
    <%if not InVendita then%>
    
    <%end if%>
    <%=Collezione%>
    <%if not InVendita then%>
    
    <%end if%>
    </TD>
    <TD style="border-style:solid; border-width:1; " bordercolor="#000000" width="143">
    
    <%=RiferimentoDiFoto%>
    
    </TD>

  2. #2
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Posta anche la query. Cosa contiene quel campo?

    Roby

  3. #3
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    Hai inserito un On Error Resume Next ? E' possibile che il nome del campo che richiami non sia corretto... (oppure il campo è vuoto).
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  4. #4
    Grazie ad entrambi.
    Era un problema di query:

    codice:
    <%
    RecordsetLinee.Close
    Set RecordsetLinee = Nothing
    case "articoli"
    IDLinea = request.querystring("idlinea")
    sqlquery = "select "
    sqlquery = sqlquery & "ID, "
    sqlquery = sqlquery & "Codice, "
    sqlquery = sqlquery & "Denominazione, "
    sqlquery = sqlquery & "Collezione, "
    sqlquery = sqlquery & "RiferimentoDiFoto, " 
    sqlquery = sqlquery & "InVendita "
    sqlquery = sqlquery & "from "
    sqlquery = sqlquery & "[Catalogo_Articoli] "
    sqlquery = sqlquery & "where "
    sqlquery = sqlquery & "IDLinea=" & IDLinea & " Order by ID desc"
    Set RecordsetArticoli = DatabaseWebStore.Execute(sqlquery)
    %>
    Grazie !!!!

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.