书签 分享 收藏 举报 版权申诉 / 27

类型董会霞 网络数据库课程设计.docx

  • 文档编号:7478244
  • 上传时间:2023-01-24
  • 格式:DOCX
  • 页数:27
  • 大小:164.19KB

 

<%whilenotrs.eof

%>

<%

rs.movenext

wend

rs.close

setcon=nothing

%>

3.点击注册后弹出情况代码

--#includefile="conn.asp"-->

<%

name=request.Form("name")

possword=request.Form("possword")

repossword=request.Form("repossword")

phone=request.Form("phone")

email=request.Form("email")

setrs=server.CreateObject("adodb.recordset")

rs.open"select*fromUtablewhereUname='"&Uname&"'",con

ifnotrs.eofthen

response.Write("")

response.Write("")

response.End()

endif

ifrs.statethen

rs.close

endif

rs.open"insertintoUtable(Uname,Usex,Upwd,Uemail,Uqq)values('"&Uname&"','"&sex&"','"&Upwd&"','"&email&"','"&qq&"')",con,1,3

ifnotrs.statethen

response.Write("")

response.Write("")

else

response.Write("")

endif

rs.close

setcon=nothing

%>

设计二

1.登陆首页面

2.代码

--#includefile="conn.asp"-->

functionchk(){

if(form1.yonghuming.value==""){

alert("输入用户名");

form1.yonghuming.focus();

returnfalse;}

if(form1.mima.value==""){

alert("请输入密码!

");

form1.mima.focus();

returnfalse;

}

}

新闻首页

用户名:

密码:

注册

 

 

国内新闻

国外新闻

<%

setrs=Server.CreateObject("adodb.Recordset")

strSql="selecttop5*fromnewswherenewsclass='国内新闻'"

rs.openstrSql,conn,1,1

whilenotrs.eof

%>

-><%=rs("newstitle")%>

<%

rs.movenext

wend

%>

<%

setrs=server.CreateObject("adodb.recordset")

sql="selecttop5*fromnewswherenewsclass='国外新闻'"

rs.opensql,conn,1,1

whilenotrs.eof

%>

-><%=rs("newstitle")%>

<%

rs.movenext

wend

%>

娱乐新闻

电商新闻

<%

setrs=server.CreateObject("adodb.recordset")

sql="selecttop5*fromnewswherenewsclass='电商新闻'"

rs.opensql,conn,1,1

whilenotrs.eof

%>

-><%=rs("newstitle")%>

<%

rs.movenext

wend

%>

<%

setrs=server.CreateObject("adodb.recordset")

sql="selecttop5*fromnewswherenewsclass='电商新闻'"

rs.opensql,conn,1,1

whilenotrs.eof

%>

-><%=rs("newstitle")%>

<%

rs.movenext

wend

%>

设计三

1.用户注册完成

设计四

1.进行用户登陆

设计五

1.登陆进入页面进行选择

2.代码

DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http:

//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

//www.w3.org/1999/xhtml">

无标题文档

-->添加新闻

-->管理新闻

 

 

 

confirm('确定退出?

'))returnfalse;">-->安全退出

 

设计六

1.选择“修改新闻”选项后进入新闻添加页面

2.源代码

--#includefile="conn.asp"-->

<%@LANGUAGE="VBSCRIPT"CODEPAGE="936"%>

--#includefile="conn.asp"-->

DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http:

//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

//www.w3.org/1999/xhtml">

<%

action=request.Form("action")

ifaction="update"then

Ntitle=request.Form("NewsTitle")

NClass=request.Form("NewsClass")

NContent=request.Form("NewsContent")

Nid=request.Form("nId")

strSql="updateNewssetNtitle='"&Ntitle&"',NClass='"&NClass&"',NContent='"&NContent&"'whereNId="&Nid

conn.executestrSql

response.Write("")

endif

newsId=request("nid")

setrs=Server.CreateObject("adodb.recordset")

strSql="select*fromNewswhereNid="&newsId

rs.openstrSql,conn

%>

修改新闻

新闻标题:

"/>

 

新闻类别:

>国内新闻

>国外新闻

>体育新闻

>娱乐新闻

>IT新闻

 

新闻内容:

配套讲稿:

如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

特殊限制:

部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

关 键  词:
董会霞 网络数据库课程设计 网络 数据库 课程设计
提示  冰豆网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:董会霞 网络数据库课程设计.docx
链接地址:https://www.bdocx.com/doc/7478244.html
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2008-2022 冰点文档网站版权所有

经营许可证编号:鄂ICP备2022015515号-1

收起
展开