i get an "Invalid Cursor State" error after querying an Ms Access database,
i get top 3 records from a table, it works fine when there are 3 or less records in the table, but after i inserting the fourth record, "Invalid Cursor State" occur
Here's the code
Expand|Select|Wrap|Line Numbers
- <%
- rs = statement.executeQuery("select top 3 * from buku where baru=1 order by tgl_entry desc");
- while(rs.next()) {
- %>
- <div style="text-align:center;">
- <img src="<%= rs.getString(5) %>"> <br />
- <%= rs.getString(2) %>
- </div>
- <%
- }
- %>
Expand|Select|Wrap|Line Numbers
- <img src="<%= rs.getString(5) %>"> <br />
what possible the cause is?
Thank you