Forum Moderators: open
connectionion string
<%
variable1 = Request.form("UserName")
variable2 = Request.form("Password")
variable3 = Request.ServerVariables("remote_addr")
If Trim(variable1) <> "" Then
%>
<%
DIM mySQL, objRS
mySQL = "INSERT INTO login(UserName, Password, Time, Date, IPaddress) VALUES ('" & variable1 & "','" & variable2 & "','" & Time() & "','" & Date() & "','" & variable3 & "');"
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open mySQL, objConn
End If
%>
what do i do?
mySQL = "INSERT INTO login(UserName, Password, Time, Date, IPaddress) VALUES ('" & variable1 & "','" & variable2 & "','" & Time() & "','" & Date() & "','" & variable3 & "');"
Response.Write
Response.End
'Set objRS = Server.CreateObject("ADODB.Recordset")
'objRS.Open mySQL, objConn
End If
This way you will be able to see what actually was loaded into mySQL