Visualizzazione dei risultati da 1 a 6 su 6

Discussione: errore in querystring

  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2002
    Messaggi
    379

    errore in querystring

    dim categal
    categal = request.querystring("catgal")
    if categal <> 0 or categal <> "" then
    categallery = "where categoria=" & categal
    else
    categallery = ""
    end if


    mi da questo errore come è possibile?


    Microsoft VBScript runtime error '800a000d'

    Type mismatch: '[string: "cartoni"]'

    /gallery.asp, line 25
    StripMAN

  2. #2
    Utente di HTML.it
    Registrato dal
    Jan 2002
    Messaggi
    379
    ho risolto, pero' ora ho qeusto problema:

    <%
    dim categal
    categal = request.querystring("catgal")
    if categal <> "" then
    categallery = " where categoria = " & categal
    else
    categallery = ""
    end if
    response.write categallery
    'INIZIO IMPAGINAZIONE GALLERY

    set rs = cn.Execute("SELECT * FROM gallery '" + categallery + "' ORDER BY data DESC")
    %>


    non funziona, non mi carica solo le foto di quella galleria ma tutte!
    StripMAN

  3. #3
    codice:
    dim categal
    categal = request.querystring("catgal")
    
    response.write categal
    response.end()
    che stampa?

  4. #4
    Utente di HTML.it
    Registrato dal
    Jan 2002
    Messaggi
    379
    ho risolto pure li, questa sintassi è sbagliata: set rs = cn.Execute("SELECT * FROM gallery '" + categallery + "' ORDER BY data DESC")
    StripMAN

  5. #5
    Originariamente inviato da strip
    ho risolto pure li, questa sintassi è sbagliata: set rs = cn.Execute("SELECT * FROM gallery '" + categallery + "' ORDER BY data DESC")
    è sbagliata perchè mancava la where?

  6. #6
    Utente di HTML.it
    Registrato dal
    Jan 2002
    Messaggi
    379
    no la where c'è, quello che ho sbagliato sono gli apici messi male.
    StripMAN

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.