Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Display last record in recordset  RSS feed

 
Disko Sid
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone suggest a hastle free way of displaying the last item in a recordset.
 
Disko Sid
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its okay people, I think I've sorted it now but if anyone has a solution that isn't so messy, please yell
<%
String ahref = "";
String ahuname = "";
String ahdate = "";
while (SEARCH2.next()) {
ahref = SEARCH2.getString("REF");
ahuname = SEARCH2.getString("UNAME");
ahdate = SEARCH2.getString("REQ_DATE");
}
out.println(ahref + " - " + ahuname + " - " + udate);
%>
[This message has been edited by Disko Sid (edited December 20, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!