<%
Config c = new Config();
Connection con = c.getcon();
String res = request.getParameter("res");
int id = Integer.parseInt(request.getParameter("id"));
int start = id;
int end = start + 19;
Statement st = con.createStatement();
String qry = "SELECT * FROM "+res;
ResultSet rs = st.executeQuery(qry);
rs.last();
int totalrows = rs.getRow();
rs.beforeFirst();
if(totalrows!=0)
{
out.println("