$row = mysqli_fetch_assoc($result);
            echo "<label class='cr-styled'><Input type=checkbox class=product_functions value=\"" . $row['FunctionId'] . "\"><i class='fa'></i> " . $row['FunctionName'] . '</label>';
            $i++;
        }
    }
}
?>
               </td>

            </tr>
             <tr>
                 <?php 
$func_type = FUNCTION_ADAPTATION;
?>
               <th><?php 
echo "<label for=''>" . get_func_type_name($func_type) . "</label>";
?>
</th>
             </tr>
             <tr>  
               <td>
                              <?php 
// Function Other
$str_query = "Select * from functions where FunctionType={$func_type}";
if ($result = mysqli_query($link, $str_query)) {
    $row_number = mysqli_num_rows($result);
    if ($row_number > 0) {
        $i = 0;
        while ($i < $row_number) {
            $row = mysqli_fetch_assoc($result);
            echo "<label class='cr-styled'><Input type=checkbox class=adapation_functions value=\"" . $row['FunctionId'] . "\"><i class='fa'></i> " . $row['FunctionName'] . '</label>';
            } else {
                echo "<Input type=checkbox name=ProbCategoryModify value=\"" . $row['FunctionId'] . "\">" . $row['FunctionName'] . '&nbsp;';
            }
            $i++;
        }
        echo "</tr>";
    }
}
// Function Other
$func_type = FUNCTION_OTHER;
$str_query = "Select * from functions where FunctionType={$func_type}";
if ($result = mysqli_query($link, $str_query)) {
    $row_number = mysqli_num_rows($result);
    if ($row_number > 0) {
        $func_ids = get_function_id($ProbCategory);
        echo "<tr><th>" . get_func_type_name($func_type) . "</th><td>";
        $i = 0;
        while ($i < $row_number) {
            $row = mysqli_fetch_assoc($result);
            if (in_array($row['FunctionId'], $func_ids)) {
                echo "<Input type=checkbox name=ProbCategoryModify checked value=\"" . $row['FunctionId'] . "\">" . $row['FunctionName'] . '&nbsp;';
            } else {
                echo "<Input type=checkbox name=ProbCategoryModify value=\"" . $row['FunctionId'] . "\">" . $row['FunctionName'] . '&nbsp;';
            }
            $i++;
        }
        echo "</tr>";
    }
}
?>
      </div>