hi im trying to get variables into a database,
can anyone see anything obviousley wrong with this code?
the problem seems to be in the "insert" i would be very greatful for any help
var Command1 = Server.CreateObject("ADODB.Command"
Command1.ActiveConnection = MM_lostat_STRING;
Command1.CommandText = "INSERT INTO tblStats (Recorded, RemoteAddress, HttpReferer, HttpUserAgent, WebPage) VALUES ('" & Request("date" & "', '" & Request("REMOTE_ADDR" & "', '" & Request("HTTP_REFERER" & "', '" & Request("HTTP_USER_AGENT" & "', '" & Request("URL" & "') ";
Command1.CommandType = 1;
Command1.CommandTimeout = 0;
Command1.Prepared = true;
Command1.Execute();
can anyone see anything obviousley wrong with this code?
the problem seems to be in the "insert" i would be very greatful for any help
var Command1 = Server.CreateObject("ADODB.Command"
Command1.ActiveConnection = MM_lostat_STRING;
Command1.CommandText = "INSERT INTO tblStats (Recorded, RemoteAddress, HttpReferer, HttpUserAgent, WebPage) VALUES ('" & Request("date" & "', '" & Request("REMOTE_ADDR" & "', '" & Request("HTTP_REFERER" & "', '" & Request("HTTP_USER_AGENT" & "', '" & Request("URL" & "') ";
Command1.CommandType = 1;
Command1.CommandTimeout = 0;
Command1.Prepared = true;
Command1.Execute();