<%@page import="java.sql.ResultSet"%> <%@page import="javabean.db_conn"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="verify_login.jsp" %><%--包含验证登陆代码--%> 关联旅客信息
  • 关联旅客
<% db_conn conn=new db_conn(); String user_id=session.getAttribute("user_id").toString(); String sql="select * from p_inf where p_id in "+ "(select p_id2 from ptp where p_id in "+ "(select p_id from p_inf where p_tel='"+user_id+"'))"; ResultSet res=conn.executeQuery(sql); while(res.next()){ String p_id2=res.getString(1); %> <% } %>
姓名 身份证号 电话 性别 工作单位 操作
<%=res.getString(2) %> <%=p_id2 %> <%=res.getString(3) %> <%=res.getString(4) %> <%=res.getString(5) %> 删除