0

Hi,

I am using a simple code to retrieve values from database. but i am getting error while i retreive an Integer value on line number 3 , 4 5.

<%  line1		while(rs.next()){
	      line2		String productname = rs.getString(1);
	      line3		int productprice = rs.getInteger(2);
	      line4		int cartid  =rs.getInteger(3);
	      line5		int qty = rs.getInteger(4);					
			counter ++;
%>

please help. I am using MS Access database

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by usman.munir
0

Try with rs.getInt(2), not with getInteger(2).

Hi,

I am using a simple code to retrieve values from database. but i am getting error while i retreive an Integer value on line number 3 , 4 5.

<%  line1		while(rs.next()){
	      line2		String productname = rs.getString(1);
	      line3		int productprice = rs.getInteger(2);
	      line4		int cartid  =rs.getInteger(3);
	      line5		int qty = rs.getInteger(4);					
			counter ++;
%>

please help. I am using MS Access database

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.