最新下载
热门教程
- 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();
%>
相关文章
- 虚拟币app排行榜 05-02
- 比特币历史最高价 05-02
- TRON是什么币 05-02
- 2025年比特币走势 05-02
- Binance.US已上线VIRTUAL 04-30
- binance官网电脑下载_binance苹果版下载地址V2.57.7 04-30