I am starting out with ASP and have tried the following code, to no avail as I get a error:
[HTML]ADODB.Recordset.1 (0x800A0E7D)
Invalid connection.
/save.asp, line 12[/HTML]
Expand|Select|Wrap|Line Numbers
- <%
- uuid = Request("uuid")
- msgid = Request("msgid")
- Dim objConn
- Dim objRS
- Set objRS = Server.CreateObject("ADODB.Recordset")
- Set objConn = Server.CreateObject("ADODB.Connection")
- objConn.ConnectionString="DRIVER={MySQL};SERVER=localhost;"_
- &"DATABASE=xxxxxx;UID=xxxxxx;PWD=xxxxxx;"
- objRS.Open "SMS", objConn
- objRS.addnew
- objRS("uuid") = uuid
- objRS("msgid") = msgid
- objRS.update
- objRS.Close
- Set objRS = Nothing
- objConn.Close
- Set objConn = Nothing
- %>