I have written the following codes to update a database from a webpage. There is no error message generated after i click submit. However, when i go to the database, nothing has been updated, for some strange reason. I have configured the ODBC and aslo set the security property of my database to full control (read/write enabled)
i have used an "insert" statement before and it works perfectly.(values are inserted into the database). However, i deleted the database and replaced it with another one with the same name. And this time i'm using "update" instead of "insert" statement. I configured the ODBC and property setting again after the change. But it just stop working now...wut could have been the reason? help~~~
here is the codes:
<html>
<body>
<%
Dim data_source, con, mySQL
data_source = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
Server.MapPath("database.mdb")
SQL = "UPDATE Theatre_Property_Information Set Theatre_Name='"&request.form("theatre_name")&"' where Theatre_Number='"&request.form("theatre_number_get ")&"' "
Set con = Server.CreateObject("ADODB.Connection")
con.Open data_source
con.Execute SQL
con.Close
Set con = Nothing
response.write("Complete updating. Thank you.")
%>
</body>
</html>