Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class.forName("com.mysql.jdbc.Driver");
- System.err.println("Driver loaded!");
- Connection con = DriverManager.getConnection(
- "jdbc:mysql://localhost/work", "root", "MyNewPass");
- System.err.println("Database Connected..");
- stmt=con.prepareStatement("select count(*) from cart where email='"+email1+"'");
- System.err.println("Statement executed.. in showdata.jsp");
- //stmt.setString(1, email1);
- ResultSet rs=stmt.executeQuery();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement