Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Class.forName("com.mysql.jdbc.Driver");
  2. con = DriverManager.getConnection("jdbc:mysql://localhost:3306/niitdb","root","");
  3.  
  4. for(pos=0; pos<7; pos++){
  5.  
  6. SQL = "SELECT `concept name` FROM `concepts " +course+ "` where `concept id` = " + pos+1;
  7. Statement stmt = con.createStatement();
  8. rs = stmt.executeQuery(SQL);
  9. rs.next();
  10. Cname[cnt] = new JLabel(rs.getString("concept name")); // error is on this line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement