Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 11
  1. #1
    Utente di HTML.it L'avatar di acquila
    Registrato dal
    Jan 2001
    Messaggi
    1,292

    Si registrazione ma con errore.

    Ho creato un modulo di registrazione utenti.
    In effetti la registrazione va a buon fine ma dopo schiacciato invia leggo questo errore

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

    [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot find the input table or query 'Utenti'. Make sure it exists and that its name is spelled correctly.

    /login_utenti/login.asp, line 17


    ....dove la linea 17 è:

    Set rs = cn.Execute(sql)

    Cos'è che non va?

  2. #2
    fai una response.write(sql) prima dell'execute così vedi qual'è il campo che non trova
    Matrix è ovunque, è intorno a noi, anche adesso nella stanza in cui siamo. È quello che vedi quando ti affacci alla finestra o quando accendi il televisore. L'avverti quando vai al lavoro, quando vai in chiesa, quando paghi le tasse. È il mondo che ti è stato messo dinanzi agli occhi, per nasconderti la verità.

  3. #3

  4. #4
    Utente di HTML.it L'avatar di acquila
    Registrato dal
    Jan 2001
    Messaggi
    1,292
    ...ora mi scrive questo .....


    SELECT ID, PAGINA FROM Utenti WHERE NOMEUTENTE='' AND PASSWORD=''
    Microsoft OLE DB Provider for ODBC Drivers error '80040e37'

    [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot find the input table or query 'Utenti'. Make sure it exists and that its name is spelled correctly.

    /login_utenti/login.asp, line 18


    Pagina è il campo dove vado a scrivere il nome del file della pagina personale una volta effettuata la registrazione.
    Nel form del modulo della registrazione non c'è il campo pagina.

  5. #5
    L'errore è chiaro

    The Microsoft Jet database engine cannot find the input table or query 'Utenti'. Make sure it exists and that its name is spelled correctly.

  6. #6
    Utente di HTML.it L'avatar di acquila
    Registrato dal
    Jan 2001
    Messaggi
    1,292
    ....e cioè ...?
    Nel database ho la tabella utenti.

  7. #7
    forse sbagli connessione. il msg del resto e' chiaro.

  8. #8
    Utente di HTML.it L'avatar di acquila
    Registrato dal
    Jan 2001
    Messaggi
    1,292
    ma i dati vengono scritti nel database...

  9. #9
    poco ci dici, poco ti possiamo rispondere. hai postato un errore, abbiamo tradotto.

  10. #10
    Utente di HTML.it L'avatar di acquila
    Registrato dal
    Jan 2001
    Messaggi
    1,292
    La pagina register.asp registra i dati dell'utente immessi nel form nel database. Dopo immessi i dati, register.asp rimanda all'index.asp dove c'è il modulo per autenticarsi (user e password).Fino a qui tutto ok.
    Se verificato user esistente, dovrebbe rimandandare l'utente alla pagina inserita (da me dopo la registrazione)nel database, per esempio utente.asp.
    Se user non esistente rimandarlo alla pagina registrazione_fallita.asp.

    Dopo l'autenticazione leggo l'errore già riportato.
    (e cioè "The Microsoft Jet database engine cannot find the input table or query 'Utenti'. Make sure it exists and that its name is spelled correctly.")

    Questo è il codice della pagina login.asp

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%
    Dim nome_ut
    Dim pass
    nome_ut = Replace(Request.Form("Username"), "'", "''")
    pass = Replace(Request.Form("Password"), "'", "''")

    Dim cn
    Set cn = Server.CreateObject("ADODB.Connection")
    cn.Open "driver={Microsoft Access Driver (*.mdb)};dbq="&Server.MapPath("/mdb-database/utenti.mdb")

    Dim sql
    sql = "SELECT ID, PAGINA FROM Utenti WHERE NOMEUTENTE='" &nome_ut&_
    "' AND PASSWORD='" &pass& "'"
    Dim rs
    Set rs = cn.Execute(sql)

    Dim autenticato
    if rs.eof then
    autenticato = false
    else
    pagina = rs("pagina")
    autenticato = true
    end if
    rs.Close
    cn.Close
    Set rs = Nothing
    Set cn = Nothing

    if autenticato = true then
    Session("Autenticato") = "OK"
    Response.Redirect pagina
    else
    Response.Redirect("index.asp")
    end if
    %>

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Documento senza titolo</title>
    </head>

    <body>

    </body>
    </html>

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.