I am using the following code to get data from a database and display it.
I am getting the following output:
Magazine info:
Magazine ID:1
Magazine Name:haritha
Publisher:xyz
Frequency:weekly EXCEPTION:No data found
When I use currid instead of rst.getString(1) in the out.println() of last line of while loop, the code works fine. Why is it not working for rst.getString(1)? Please help.