Advertisement
Guest User

Untitled

a guest
May 8th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <%
  2.  
  3. try {
  4. Class.forName("com.mysql.jdbc.Driver");
  5. Connection conn
  6. = DriverManager.getConnection("jdbc:mysql://localhost/agendaLogin", "root", "root");
  7. Statement stmt = conn.createStatement();
  8. ResultSet rs = stmt.executeQuery("SELECT * FROM compromisso where usuario = '" + usuario + "'");
  9. %>
  10. <table width="100%" border="1" class="centralizarDireita">
  11. <tr>
  12. <td><b>Titulo</b></td>
  13. <td><b>Tipo</b></td>
  14. <td><b>Data</b></td>
  15. <td><b>Local</b></td>
  16. <td><b>Observacao</b></td>
  17.  
  18. </tr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement