Hi All
I was hoping you could give me some advice.
I've written the little piece of code below in an attempt to update one row in my database which sits on my remote web server.
I have saved the below code to a file called: test.html, but I dont get an error when I double click the file, but the row also doesn't get updated in my database.
Any ideas?
<%@LANGUAGE=VBSCRIPT%>
<%
Option Explicit
Dim strConnection, conn, rs, strSQL
strConnection = "Provider=sqloledb;Data Source=servername;" & _
"Initial Catalog=MYDB;User Id=vabsie;Password=kr00nstadmi6;"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open strConnection
Set rs = Server.CreateObject("ADODB.recordset")
strSQL = "update tbl_users set username='vabsie' where username='sss' commit"
rs.open strSQL, conn, 3,3
rs.Close
Set rs = Nothing
conn.Close
Set conn = Nothing
%>
I was hoping you could give me some advice.
I've written the little piece of code below in an attempt to update one row in my database which sits on my remote web server.
I have saved the below code to a file called: test.html, but I dont get an error when I double click the file, but the row also doesn't get updated in my database.
Any ideas?
<%@LANGUAGE=VBSCRIPT%>
<%
Option Explicit
Dim strConnection, conn, rs, strSQL
strConnection = "Provider=sqloledb;Data Source=servername;" & _
"Initial Catalog=MYDB;User Id=vabsie;Password=kr00nstadmi6;"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open strConnection
Set rs = Server.CreateObject("ADODB.recordset")
strSQL = "update tbl_users set username='vabsie' where username='sss' commit"
rs.open strSQL, conn, 3,3
rs.Close
Set rs = Nothing
conn.Close
Set conn = Nothing
%>