Guest User

Untitled

a guest
Jun 23rd, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <%@include file = "Include_Files.jsp"%>
  2.  
  3. <%
  4. Connection con = DriverManager.getConnection(url, userid, passDB);
  5. Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);
  6. ResultSet rs = stmt.executeQuery(search_query);
  7.  
  8. %>
  9. <table id = "search_table" cellpadding = "5" border = "2">
  10. <tr>
  11. <th>Name</th>
  12. <th>Family Name</th>
  13. <th>Email Address</th>
  14. <th>Username</th>
  15. <th>Password</th>
  16. </tr>
  17. <%
  18. while (rs.next())
  19. {
  20. %>
  21. <TR>
  22. <TD><%=rs.getString(1)%></TD>
  23. <TD><%=rs.getString(2)%></TD>
  24. <TD><%=rs.getString(3)%></TD>
  25. <TD><%=rs.getString(4)%></TD>
  26. <TD><%=rs.getString(5)%></TD>
  27. </TR>
  28. <%
  29. }
  30. stmt.close();
  31. con.close();
  32. %>
  33.  
  34. </table>
Add Comment
Please, Sign In to add comment