Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. rubin
    3. Post
    R

    rubin

    @rubin

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 1
    • Post 6
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    0
    Reputazione
    6
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User Newbie

    Post creati da rubin

    • RE: Classifica

      Eccola... ho provato così anche prima... sono fuso 🙂

      <%
      Function Apex(sData,newData)
      ' Return string with single quotes doubledDim iLast As Integer
      If Len(sData) = 0 Then
      NewData = ""
      Exit Function
      END IF
      iLast = InStr(sData, "'")
      While iLast
      sPart = sPart & left(sData, iLast - 1) & "'" & "'"
      sData = Right(sData, Len(sData) - iLast)
      iLast = InStr(sData, "'")
      Wend
      sData = sPart & sData
      newData = Trim(sData)
      End Function

      'Create object. In this case Connection to a database
      Set Conn = Server.CreateObject("ADODB.Connection")
      'Select provider
      Conn.Provider = "Microsoft.Jet.OLEDB.4.0"
      'Select data source.
      'Server.MapPath function is equivalent to app.path function of VB
      'It returns the directory in which the script is present
      Conn.ConnectionString = "Data Source=" & Server.MapPath ("classifica.mdb")
      'Open the connection
      Conn.Open

      'Create recordset
      Set Rs = Server.CreateObject("ADODB.Recordset")
      Set mTable = Server.CreateObject("ADOX.Catalog")
      set mNew = Server.CreateObject("ADOX.Table")
      'Open recordset with the connection which we have created earlier
      'you must be familiar with SELECT statement ,
      'If not check my VB tutorial section.
      mtable.ActiveConnection = Conn.ConnectionString
      TabellaDaVisualizzare = Request.querystring("Tabella")
      if TabellaDaVisualizzare = "" then
      TabellaDaVisualizzare = Request.form("Tabella")
      end if
      SQL =Request.querystring("sSQL")

      sql = "SELECT * FROM classifica ORDER BY p DESC"

      %>

      postato in Coding
      R
      rubin
    • RE: Classifica

      non si ordina...
      io utilizzo un selezionatore che mi permettrebbe di gestirre più classifiche.
      Lo trovi qui > http://www.orlandino.it/public/basket/classifica2006-07.asp
      se facessi leggere direttamente il database?

      postato in Coding
      R
      rubin
    • RE: Classifica

      Ti ringrazio infinitamente per la tua pazienza.
      Avevo letto la tua avvertenza solo che no so proprio perchè non funzioni. Forse mi sfugge qualche particolare che più guardo e più non vedo.

      Posso inviartli la pagina ed il data base?

      postato in Coding
      R
      rubin
    • RE: Classifica

      in verità ho fatto tante di quelle prove che non ho capito granchè 🙂
      fino "ORDER BY p DESC" c'èro quasi arrivato non so dove metterlo... urccc

      plssss aiuto.....

      postato in Coding
      R
      rubin
    • RE: Classifica

      GRAZIE MADAI 🙂

      il database è semplice:
      nome campo
      SQUADRA (testo)
      P (Numerico)

      ho creato questo... dov'è lerrore? Cioè funziona tutto però non mette tutto in ordine di punti in classifica

      <%
      else
      select case Request.querystring("Action")
      case "Cancella"
      Conn.Execute Request.querystring("Query")
      Response.Redirect "classifica2006-07.asp?Tabella=" & TabellaDaVisualizzare & "&TOP=" & clng(Request.QueryString ("TOP"))
      case "Aggiorna"
      rs.Open "SELECT * FROM " & TabellaDaVisualizzare & " " & Request.querystring("Query") &" order by asc ",conn,1,3
      set mNew = mtable.tables(TabellaDaVisualizzare)

      %>

      postato in Coding
      R
      rubin
    • Classifica

      E' il mio primo post un saluto a tutti.

      Ho provato a cercare un post sull'argomento senza risultati.
      Dovrei gestire una classifica di un campionato di basket.
      Ho creato il database e le pagine per modificarlo.
      Il problema è che no riesco ad ordinare i record in base ai punti in classifica.

      potete aiutarmi?

      Grazie anticipatamente

      rubin

      postato in Coding
      R
      rubin