anchor.diff:  	}
   		
   %>
  -			<td><a href="#" class="btn btn-default">Next 10</a></td>
  +			<td><form>
  +				<input type="hidden" name="r_offset" value="<%= (r_offset + 10) %>"/>
  +				<input type="hidden" name="c_offset" value="<%= c_offset%>"/>
  +				<input class="btn btn-default" value="Next 10" />
  +			</form></td>
   		</tr>
   <%	
   	for(i=0;i<s_list.size();i++)
  
positive.code: try
  {
  	try{Class.forName("org.postgresql.Driver");}catch(Exception e){System.out.println("Driver error");}
  	conn = DriverManager.getConnection(
  			"jdbc:postgresql://ec2-23-21-185-168.compute-1.amazonaws.com:5432/ddbj4k4uieorq7?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory",
  			"qwovydljafffgl", "cGdGZam7xcem_isgwfV3FQ_jxs");
  	stmt =conn.createStatement();
  	stmt_2 =conn.createStatement();
  	stmt_3 =conn.createStatement();
  	/**SQL_1 for (state, amount)**/
  	int c_offset = (request.getParameter("c_offset") != null) ? Integer.parseInt(""+request.getParameter("c_offset")):0;
  	int r_offset = (request.getParameter("r_offset") != null) ? Integer.parseInt(""+request.getParameter("r_offset")):0;
  		
  	String SQL_1="select p.id, p.name, sum(c.quantity*p.price) as amount from products p, sales c "+
  				 "where c.pid=p.id "+
  
negative.code: 
  
  		Class.forName("org.postgresql.Driver");
  		c_pstmt = conn.prepareStatement("SELECT * FROM categories");
  		c_rs = c_pstmt.executeQuery();
  %>
  	
  