H
H8ids
Working on dynamically deleting a database entry. Below is the code I'm
running into an error with. There is a column in the database by the name of
"email".
Is it possible for the ASP code to define an ACCESS column as a Form?
<%
' Declaring variables
Dim email, con, data_source, sql_delete
email = Request.Form("email")
sql_delete = "delete email from users where email = '" & email & "'"
data_source = "Provider=Microsoft.Jet.OLEDB.4.0;
Data Source = " & _
Server.MapPath("mail.mdb")
Set con = Server.CreateObject("ADODB.Connection")
con.Open data_source
con.Execute sql_delete
con.Close
Set con = Nothing
Response.Write "Your email address " & email & _
" was successfully deleted from our database."
%>
running into an error with. There is a column in the database by the name of
"email".
Is it possible for the ASP code to define an ACCESS column as a Form?
<%
' Declaring variables
Dim email, con, data_source, sql_delete
email = Request.Form("email")
sql_delete = "delete email from users where email = '" & email & "'"
data_source = "Provider=Microsoft.Jet.OLEDB.4.0;
Data Source = " & _
Server.MapPath("mail.mdb")
Set con = Server.CreateObject("ADODB.Connection")
con.Open data_source
con.Execute sql_delete
con.Close
Set con = Nothing
Response.Write "Your email address " & email & _
" was successfully deleted from our database."
%>