17. november 2003 - 14:46
Der er
6 kommentarer og 1 løsning
SQL Update error
Hej Hvad er der galt her: strSQL = "Update brugere set " strSQL = strSQL & "navn= '" & Request.Form("navn") & "', " strSQL = strSQL & "adresse= '" & Request.Form("adresse") & "', " strSQL = strSQL & "post= '" & Request.Form("post") & "', " strSQL = strSQL & "by= '" & Request.Form("by") & "', " strSQL = strSQL & "klub= '" & Request.Form("klub") & "', " strSQL = strSQL & "favklub= '" & Request.Form("favklub") & "', " strSQL = strSQL & "favspiller= '" & Request.Form("favspiller") & "', " strSQL = strSQL & "password= '" & Request.Form("password") & "', " strSQL = strSQL & "mail= '" & Request.Form("mail") & "' " strSQL = strSQL & " Where Id = " & Request.Querystring("id") Conn.Execute(strSQL) Mvh Lange
Annonceindlæg fra gavdi
17. november 2003 - 14:50
#3
Jeg kan ikke umiddelbart se noget prøv lige at udskrive: strSQL = "Update brugere set " strSQL = strSQL & "navn= '" & Request.Form("navn") & "', " strSQL = strSQL & "adresse= '" & Request.Form("adresse") & "', " strSQL = strSQL & "post= '" & Request.Form("post") & "', " strSQL = strSQL & "by= '" & Request.Form("by") & "', " strSQL = strSQL & "klub= '" & Request.Form("klub") & "', " strSQL = strSQL & "favklub= '" & Request.Form("favklub") & "', " strSQL = strSQL & "favspiller= '" & Request.Form("favspiller") & "', " strSQL = strSQL & "password= '" & Request.Form("password") & "', " strSQL = strSQL & "mail= '" & Request.Form("mail") & "' " strSQL = strSQL & " Where Id = " & Request.Querystring("id") Response.Write strSQL Response.End