Advertisement
Guest User

Untitled

a guest
Oct 10th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Class.forName("com.mysql.jdbc.Driver");
  2. System.err.println("Driver loaded!");
  3.  
  4. Connection con = DriverManager.getConnection(
  5. "jdbc:mysql://localhost/work", "root", "MyNewPass");
  6. System.err.println("Database Connected..");
  7.  
  8.  
  9. stmt=con.prepareStatement("select count(*) from cart where email='"+email1+"'");
  10.  
  11. System.err.println("Statement executed.. in showdata.jsp");
  12. //stmt.setString(1, email1);
  13. ResultSet rs=stmt.executeQuery();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement