anchor.diff:  		Statement st = connjdbc.getDatacn();
   		ResultSet rs = null;
   %>
  -
  +<%
  +		int check = 0;
  +			int id = 0;
  +			String vehicletype = null;
  +			int origincityid = 0;
  +			int descityid = 0;
  +			int originstateid = 0;
  +			int deststateid = 0;
  +			String traveltype = null;
  +			String typeoftransport = null;
  +			String tollamount = null;
  +			
  +			String editid = request.getParameter("edit_id");
  +			if (editid != null) {
  +				check = 5;
  +				session.setAttribute("edit_id", editid);
  +				rs = st.executeQuery("Select * from tolltax_cost_per_vehicle where vehicle_type_id ="+ editid);
  +				while (rs.next()) {
  +					id = rs.getInt(1);
  +					vehicletype = rs.getString(2);
  +					origincityid = rs.getInt(3);
  +					descityid = rs.getInt(4);
  +					traveltype = rs.getString(5);
  +					typeoftransport = rs.getString(6);
  +					tollamount = rs.getString(7);
  +				}
  +				rs.close();
  +				rs = st.executeQuery("Select state_id from city_info where city_id ="+ origincityid);
  +				while(rs.next()){
  +					originstateid = rs.getInt(1);
  +				}
  +				
  +				rs.close();
  +				rs = st.executeQuery("Select state_id from city_info where city_id ="+ descityid);
  +				while(rs.next()){
  +					deststateid = rs.getInt(1);
  +				}
  +			}
  +	%>
   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
   <html>
   <head>
  
positive.code: 
  <%
  	if (session.getAttribute("admin_name") == null) {
  		response.sendRedirect("adminlogin.jsp");
  	}
  %>
  <%@page import="java.util.ArrayList"%>
  
negative.code: 		xmlhttp.open("GET", "getdestcity.jsp?q=" + str+"&ocity="+ocity+"&editcityid="+dcity, true);
  		xmlhttp.send();
  	}
  </script>
  </head>
  <body>
  	<%@ include file="header.jsp" %>
  	<script type="text/javascript">
  		var d = document.getElementById("toll");
  		d.className = d.className + "active";	
  	</script>
  	
  	<center>
  		<table style="width: 100%">
  