} //in here we are going to fetch data that is going to feel the drop downs $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object $Regions = $encoder->Get_Regions(); //get regions $Cities = $encoder->Get_City(); //get cities $SubCities = $encoder->Get_Sub_City(); //get sub cities $Weredas = $encoder->Get_Wereda(); //get weredas $Sefers = $encoder->Get_Sefer(); //get sefer $buildings = $encoder->Get_Buildings(); //get the buildings $Street = $encoder->Get_Streets(); //get street $categories = $encoder->GetGeneralCategory(GeneralCategory::EDUCATIONAL); //get category that are in a generic Education category $company_ownership = $encoder->Get_Ownerships(); //get different type of ownership if ($_SERVER['REQUEST_METHOD'] == 'GET') { if (isset($_GET['CA'])) { $Company_ID = $_GET['company_id']; $single_company = $encoder->Get_Company_With_Out_Building($Company_ID); $Company_Spec = mysqli_fetch_array($single_company, MYSQLI_ASSOC); //get place $Com_Region_ID = $Company_Spec["Region"]; $Com_City_ID = $Company_Spec["City"];