Example #1
0
				<h1 class="result_for">ውጤት</h1>
			</div>
			<div class="col-sm-11 search_query_con">

				<ol class="breadcrumb">

					<?php 
//this will handle form and search the database for the specific search query
//set flag if search is needed
$search = false;
//first handle the form
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    //get the category
    if ($_POST['category'] != 'NOT_FILLED') {
        $category = $_POST['category'];
        $category_name = $operator->Get_Category_Name($category);
        echo '<li><a href="#">' . $category_name . '</a></li>';
        $search = true;
    } else {
        $category = null;
    }
    //get the ownership
    if ($_POST['ownership'] != 'NOT_FILLED') {
        $ownership = $_POST['ownership'];
        $ownership_name = $operator->Get_Ownership_Name($ownership);
        echo '<li><a href="#">' . $ownership_name . '</a></li>';
        $search = true;
    } else {
        $ownership = null;
    }
    //get the specialization