数据库删除操作,头大了,求大哥大姐小改下
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
'连接数据库开始
dim conn
dbpath=server.mappath("db/#mydataroom.mdb")
set conn=server.createobject("adodb.connection")
conn.open "PROVIDER=Microsoft.jet.OLEDB.4.0;data source="&dbpath
%>
<%
dim name,str
name=request.Form("name")
str="delete from friend where name='name'"
conn.execute(str)
%>
<center><h1>删除完毕</h1></center>
<center><a href="admin_friend.asp"><h1>返回</h1></a></center>
</body>
</html>
我想删除name=request.form("name")的内容..
参考答案:str="delete [name] from friend where [name]='"&name&"'"