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

    numerare i recor estratti

    Ciao a tutti non riesco a uscirne fuori devo inserire un numero progressivo ad ogni record estratto dalla sql....un suggerimento ? grazie
    <%
    Set rsL = Server.CreateObject("ADODB.RecordSet")
    if ntf = "" Or ntf = "0" Or ntf = "1" then
    sqlL = "SELECT top 2 letture.nContatore, letture.valore, letture.dataLettura FROM letture WHERE (((letture.nContatore)='"&nc&"')) order by valore desc"
    else
    sqlL = "SELECT top "&NTF&" letture.nContatore, letture.valore, letture.dataLettura FROM letture WHERE (((letture.nContatore)='"&nc&"')) order by valore desc"
    end if
    rsL.Open sqlL, conn, 3, 3
    if rsL.recordcount > 0 then
    while not rsL.EOF
    n = rsL.recordcount

    %>

    QUI DEVE COMPARIRE IL N° - <%=rsL("nContatore")%> - <%=rsL("valore")%> -
    <% if rsL("dataLettura") = "" then %>
    DATA NON INSERITA
    <% else %>
    <%=rsL("dataLettura")%>
    <% end if %>


    <%
    rsL.movenext
    wend
    rsL.Close
    end if
    %>

  2. #2
    Grazie ugualmente ho risolto ..... un'attimo di smarrimento portate pazienza
    Ciao

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.