I\'m having trouble getting data from a ResultSet object. Here is my code:
String sql = \"SELECT type FROM node WHERE nid = ?\"; PreparedStatement pr
Basically you are positioning the cursor before the first row and then requesting data. You need to move the cursor to the first row.
result.next(); String foundType = result.getString(1);
It is common to do this in an if statement or loop.
if(result.next()){ foundType = result.getString(1); }