Possibile che incespico ancora in questi errori dopo tutte le volte che ho realizzato una sezione di login?
<%
'evito l'sql injection
Dim Username, Password
Username = Request.Form("username")
Password = Request.Form("password")
Username = Replace(Username, "'", "")
Username = Replace(Username, "%", "")
Password = Replace(Password, "'", "")
Password = Replace(Password, "%", "")
'effettuo l'autenticazione
Dim Autentica, SqlAut
Set Autentica = Server.CreateObject("ADODB.Recordset")
SqlAut = "SELECT * FROM utenti WHERE username = '"&Username&"' AND password = '"&Password&"'"
Autentica.Open SqlAut, Conn, 1, 3
%>
Mi da:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/giornalino/login.asp, line 18
Di solito mi succedeva quando sbagliavo il nome dei campi del database ma ho controllato e sono giusti.
Sono allibito.
Aiutatemi vi prego.
<%
'evito l'sql injection
Dim Username, Password
Username = Request.Form("username")
Password = Request.Form("password")
Username = Replace(Username, "'", "")
Username = Replace(Username, "%", "")
Password = Replace(Password, "'", "")
Password = Replace(Password, "%", "")
'effettuo l'autenticazione
Dim Autentica, SqlAut
Set Autentica = Server.CreateObject("ADODB.Recordset")
SqlAut = "SELECT * FROM utenti WHERE username = '"&Username&"' AND password = '"&Password&"'"
Autentica.Open SqlAut, Conn, 1, 3
%>
Mi da:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/giornalino/login.asp, line 18
Di solito mi succedeva quando sbagliavo il nome dei campi del database ma ho controllato e sono giusti.
Sono allibito.
Aiutatemi vi prego.