I have the following line:
int newmes = s.executeUpdate("SELECT COUNT(*) FROM messages where MessageTo = " + rs.getInt("MemberID");
But it always returns 0 and not the count value. I assume 0 is the state of execution, but how can I have the count because I need to use that in the rest of my program!
Thanx in advance
Smarty
int newmes = s.executeUpdate("SELECT COUNT(*) FROM messages where MessageTo = " + rs.getInt("MemberID");
But it always returns 0 and not the count value. I assume 0 is the state of execution, but how can I have the count because I need to use that in the rest of my program!
Thanx in advance
Smarty