标题:数据库中的数据会出现乱麻?
取消只看楼主
w136290854
Rank: 1
等 级:新手上路
帖 子:138
专家分:0
注 册:2008-10-11
结帖率:96.3%
 问题点数:0 回复次数:1 
数据库中的数据会出现乱麻?

为什么添加到数据库中的数据会出现乱麻啊?
下面就是添加数据到数据库的代码:
[color=red]<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Response.Buffer = True

'Make sure this page is not cached
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "No-Store"
%>

<!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>
<!--#include file="conn.asp" -->
<%
wname=request.Form("tname")
sex=request.Form("tsex")
mobile=request.Form("tmobile")
tel=request.Form("ttel")
address=request.Form("taddress")
QQ=request.Form("tqq")
mail=request.Form("tmail")
set rs=server.CreateObject("adodb.recordset")
sql="select * from listname"
rs.open sql,conn,1,3
rs.addnew
rs("name")=wname
rs("sex")=sex
rs("mobile")=mobile
rs("tel")=tel
rs("address")=address
rs("QQ")=QQ
rs("E-mail")=mail
rs.update
%>
</head>

<body>
</body>
</html>
[/color]
搜索更多相关主题的帖子: 乱麻 数据库 
2008-10-21 14:02
w136290854
Rank: 1
等 级:新手上路
帖 子:138
专家分:0
注 册:2008-10-11
得分:0 
谢谢楼上的
2008-10-21 16:10



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-239603-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.922086 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved