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

    Paginare due query in unica tabella

    Ciao!

    non ho trovato nulla in giro come esempio,

    ho la necessità di paginare due query nella stessa tabella, un recordset in orizzontale ed uno in verticale.

    esempio

    orizzontale eventi
    verticale utenti


    qualcuno di voi ha mai affrontato questa problematica?

  2. #2
    devi fare un esempio, grazie

  3. #3
    ciao Optime!

    nella tabella orizzontale ho

    -----------------------Nome utente1 Nome utente2 Nome utente3
    ------------------------------------------------------------------
    evento 1
    evento 2
    evento 3
    evento 4



    in modo tale da poter far calcoli incrociando gli id

  4. #4
    codice:
     <%
    sql="select * from quesiti_area"
    Set rec= Server.CreateObject("ADODB.Recordset")
    Set Rec=Conn.Execute(SQL) 
    %>
    <table width="100%" border="0">
      <tr>
        <td></td>
        <td><table border="0"><tr>
    <%
        ' IMPOSTO A 0 IL CONTATORE
        contatore = 0
        ' APRO IL RECORDSET
        rs.Open "SELECT * FROM u_guest ORDER BY nomecompleto ASC", cn, 1
        ' ESEGUO IL CICLO
        While rs.EOF = False
            ' IMPOSTO LA PAGINAZIONE A 3 COLONNE ED N RIGHE
            ' IN FUNZIONE DEL NUMERO DI RECORD PRESENTI NEL DB
            If contatore = 3 Then
                contatore = 0
                Response.Write "</tr><tr>"
            End If
    %>
        <td><%=rs("nomecompleto")%></td>
    <%
            rs.MoveNext
            ' INCREMENTO IL VALORE DEL CONTATORE
            contatore = contatore + 1
        Wend
        rs.Close
    %>
    </tr></table></td>
      </tr>
      <%While Not rec.EOF%>
      <tr>
        <td><%=rec("alberatura")%></td>
        <td>id utente <%=rs("id")%> - ambito <%=rec("id")%> </td>
      </tr>
    <% rec.MoveNext
    Wend
    rec.close%>
    </table>

  5. #5
    continuo a non capire, incrociare, utenti verticali e eventi orizzontali, posti pezzi di codice...

    puoi dire esattamente cosa hai in input e cosa vuoi in output? 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.