plz help me
[nobr]PreparedStatement ps=cnn.prepareStatement(query);
ps.setString(1, coemail);
rs=ps.executeQuery();
if(rs.next()){
r_id=rs.getInt(1);
co_id=rs.getInt(2);
if(!coemail.equals(rs.getString(3))){
out.println("<br><br><br><center><font color=red size=3><b>Access Denied</b></font>");
}
elseif(!remail.equals(rs.getString(4))){
out.println("<br><br><br><center><font color=red size=3><b>Registrant Email is incorrect</b></font>");
}
elseif(!rdob.equals(rs.getString(5))){
out.println("<br><br><br><center><font color=red size=3><b>Date of Birth is incorrect</b></font>");
}
else{
res.sendRedirect("/servlet/forgetPass1?co_id="+co_id);
}
}
ps.close();
the first if statement is not working. please help me i.e.
if(!coemail.equals(rs.getString(3))){
out.println("<br><br><br><center><font color=red size=3><b>Access Denied</b></font>");
}
thanks & kind regards[/nobr]

