Visualizzazione dei risultati da 1 a 5 su 5

Discussione: problemino

  1. #1

    problemino

    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

    [Microsoft][Driver ODBC Microsoft Access] Errore di sintassi (operatore mancante) nell'espressione della query 'email = pippo@pippo.it'.

    /form_recovery_pwd.asp, line 108

    -------------------------------------------------------------------

    che_email = request.form("email")

    sSql = "SELECT * FROM t_utenti Where email = " & che_email

    RESPONSE.WRITE("<HR>" & sSql & "<HR>")
    rs_even.OPEN sSql, dbPrimo

    ----------------------------

    SAPRESTE AIUTARMI ?
    GRAZIE

  2. #2
    codice:
    che_email = request.form("email")
    
    if len(che_email) > 0 then
    
    sSql = "SELECT * FROM t_utenti Where email = '" & che_email & "'"
    
    RESPONSE.WRITE("<HR>" & sSql & "<HR>")
    rs_even.OPEN sSql, dbPrimo
    
    
    
    end if

  3. #3
    sei magico ! ora funziona tutto

    grazie

  4. #4
    ora houn altro problema
    .....

    innazitutto Ti spiego che questo codice lo uso per recuperare la pwd di un utente.

    lui inserisce l'email, il db controlla,emi manda la pwd.

    il problema è che se l'utente non è registrato mi da errore !

    ti mando tutto il codice....
    ------------------------------------------


    che_email = request.form("email")

    if len(che_email) > 0 then

    sSql = "SELECT * FROM t_utenti Where email = '" & che_email & "'"

    'RESPONSE.WRITE("<HR>" & sSql & "<HR>")
    rs_even.OPEN sSql, dbPrimo

    email_utente = rs_even.FIELDS("email")
    pwd_utente = rs_even.FIELDS("password")

    ELSE

    email_utente = che_email
    pwd_utente = "utente non registrato !!!"

    end if %>

  5. #5
    codice:
    che_email = request.form("email")
    
    if len(che_email) > 0 then
    
    sSql = "SELECT * FROM t_utenti Where email = '" & che_email & "'"
    
    'RESPONSE.WRITE("<HR>" & sSql & "<HR>")
    rs_even.OPEN sSql, dbPrimo
    
    if not rs_even.eof then
    email_utente = rs_even.FIELDS("email") 
    pwd_utente = rs_even.FIELDS("password")
    else
    response.write "utente inesistente
    "
    end if
    
    ELSE 
    
    email_utente = che_email 
    pwd_utente = "utente non registrato !!!"
    
    end if %>

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.