topiao.jsp

来自「JSP+SQL2000做的火车站售票管理系统」· JSP 代码 · 共 37 行

JSP
37
字号
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="connection.jsp" %>
<%
ResultSet rsVerify;
String cs_trainno,cs_chex,sqlVerify;
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<% 
cs_trainno=(String)session.getAttribute("cs_trainno");
cs_chex=(String)session.getAttribute("cs_chex");
int i=1;   
sqlVerify="select * from cs_train where trainno='"+cs_trainno+"'";
 rsVerify=sql.executeQuery(sqlVerify);
 while(rsVerify.next())
 { 
  
  int m=200;
  int n=m-1; 
 if(i<10)
 {
 sql.executeUpdate("update cs_train set yzshu='n' where trainno='"+cs_trainno+"'"); 
 
 }  
 }
%>
<p><b>成功!3小时送票到门</b></p>

</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?