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

类型在线投票系统详细设计.docx

  • 文档编号:824588
  • 上传时间:2022-10-13
  • 格式:DOCX
  • 页数:24
  • 大小:190.34KB


<%}%>

<%rs.close();%>

2.result.jsp

<%@pagecontentType="text/html;charset=gb2312"%>

<%@pageimport="java.sql.*"%>

投票结果

useBeanid="dbBean"class="vote.DBConnect"scope="page"/>

单选投票结果


<%

Stringsql="select*fromvoteorderbyid";

ResultSetrs=dbBean.executeQuery(sql);

Stringid;

id=request.getParameter("vote");

sql="updatevotesetnumber=number+1whereid="+id;

dbBean.executeQuery(sql);

ResultSetrs1,rstotal;

intquestionNum=0,optType,id1,number,total=0;

Stringquestion,str,optContent;

sql="select*fromvotewhereflag=0andoptType=0orderbyiddesc";

rs=dbBean.executeQuery(sql);

while(rs.next()){

questionNum++;

str="主题"+questionNum+":

";

question=rs.getString("question");

optType=rs.getInt("optType");

id=Integer.toString(rs.getInt("id"));

out.print(str+question+"
")

配套讲稿:

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

特殊限制:

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

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

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

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

收起
展开