最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
jsp分页程序代码
时间:2022-07-02 17:23:17 编辑:袖梨 来源:一聚教程网
jsp分页程序代码
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@include file ="../inc/ChkPwd.jsp"%>
<%@include file="../DB.jsp"%>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
css" />
--内容管理 | |||||||||
| <% String op; String ID = request.getParameter("id"); op = request.getParameter("op"); if(op==null){ op = "my"; } if (op.equals("del") && ID!=null){ String bbb = new String(request.getParameter("BigClassName").getBytes("iso8859_1")); Statement stmt_ChannelDEL=conn.createStatement(); String Sqldel="delete from hl_news where id=" + ID; int shan=stmt_ChannelDEL.executeUpdate(Sqldel); if (shan>0) { out.print(""); } stmt_ChannelDEL.close(); return ; } Statement stmtA=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); String SqlA="Select * from hl_smallclass WHERE bigname='行业新闻' order by id asc"; ResultSet RsA=stmtA.executeQuery(SqlA); while (RsA.next()) { %> <%=RsA.getString("smallname")%> | <% } RsA.close(); //关闭记录集对象 stmtA.close(); //关闭语句对象 %> | |||||||||
<%
RsArticle.close();
stmt_Article.close();
conn.close();
%>
相关文章
- 黑暗之魂2鼠王的试炼怎么打 07-02
- 资讯:三大交易所app下载 全球前三大加密货币交易所 07-02
- 美国运通美联储更新引发瑞波整合热议 07-02
- 火影忍者晓迪达拉怎么玩 07-02
- 火影忍者六道枫怎么玩 07-02
- 像素纪元弓箭手电套CD流玩法分享 07-02