ASP difettoso :(

Andrea84

Nuovo Utente
11 Dic 2003
5
0
0
41
Ciao a tutti,

perchè questa pagina mi fornisce "OK" ma non sovrascrive il campo nome???

ASP:

<%
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open"Provider = Microsoft.Jet.OLEDB.4.0; Data Source =" & Server.MapPath("Skyweb.mdb")
%>

<%
ID = Request.Form("IDUser")
if ID = "" then
Response.Write("utente_modificato=fallito")
Response.End
end if

Dim objRs
Set objRs = Server.CreateObject("ADODB.Recordset")
objRs.Open "select * from sky_utenti where IDUser = "& ID, objConn, 3, 3
nome = Request.Form("nome")
Response.Write("utente_modificato=OK&")
objRs.Update
%>



ASpetto una vostra risposta
GRAZIE.
 
Usa UPDATE:
Codice:
<%
...
SQL = "UPDATE sky_utenti SET nome = '" & Request.Form("nome") & "' WHERE IDUser = "& ID
objRs.Open SQL, objConn
...
%>
 

Discussioni simili