This gives a compilation error " missing return statement"..
there is no sql error or such...where to put the return.???
private boolean checkpword(){
pasWd = pword.getText() ;
try{
/*this works ok...>>>*/ResultSet pwrd = c.getData("Select Pword from users where userNm = '"+uname.getText()+"' ");
while(pwrd.next()){
if(pasWd.equals(pwrd.getString("Pword"))){
return true;
}
else{
return false;
}
}
}catch(SQLException e){ }
}