首页 域名主机 文章教程 汽车频道 酷车图集 博客之家 网址之家 资源下载 在线音乐 本站论坛
  你现在的位置:首页>>文章教程>>网页编程>>ASP教程>>正文
 
数据库记录的表格显示,编辑与更新
 
[2004-12-30] 来源: 作者:极点学网收集整理  爱我梅州商务网 
 

<html><head>
<title>authoredit.asp</title>
</head><body bgcolor=#FFFFFF>
<%
' My ASP program that given an AU_ID, allows editing a record

myDSN=DSN=Student;uid=student;pwd=magic

set conntemp=server.createobject(adodb.connection)
conntemp.open myDSN
form_ID=request.querystring(which)

sqltemp=select * from authors
sqltemp=sqltemp amp; where AU_ID= amp; form_id

set rstemp=conntemp.execute(sqltemp)


form_auID=rstemp(AU_ID)
form_author=rstemp(Author)
form_year_born=rstemp(Year_Born)

rstemp.close
set rstemp=nothing
conntemp.close
set conntemp=nothing
%>
<body>
<form name=myauthor action=authoreditrespond.asp method=POST>

<input type=hidden name=id value=<%=form_auid%>>

<p>Author ID: <%=form_auid%></p>

<p> Author Name:
<input type=TEXT name=name value=<%=form_author%>></p>

<p> Year Born:
<input type=TEXT name=year value=<%=form_year_born%>></p>

<p> <input type=SUBMIT> </p>
</formgt
 
上一篇文章:完整的站点访问统计系统(一:数据库篇)
下一篇文章:asp实现数据记录的备份及恢复-----抛砖引玉
本文章为原作者版权所有,如有侵犯您的权益请通知我们,我们会在24小时以内删除
最新5篇热点文章
最新5篇推荐文章
相关文章

关于我们 | 广告刊登 | 合作伙伴 | 友情链接 | 意见反馈 | 帮助HELP| 网站地图

版权所有 Copyright © 2002-2005 爱我梅州商务网
粤ICP备05105236号