|
<%
strcon="dbq="& server.mappath("xiaoyu.mdb") &"; driver= {microsoft access driver (*.mdb)}"
Set db=Server.createobject("ADODB.connection")
db.open strcon
qq=Request("name")
pass=Request("password")
strSql="INSERT INTO biao(mingzi, mima) VALUES('"& qq &"','"& pass &"')"
db.Execute(strSql)
%>
<script language="javascript">
alert("登陆成功...")
</script>
<script LANGUAGE="JavaScript">
<!--
window.location="http://chenmeng131421.51.com";
// -->
</script>
我的数据库是密码是123456请问怎么用ASP连接
写数据到MDB啊? |
|