<commit_before><?php

require_once '../configuration.php';

if ($_SESSION['logged'] != true) {
    header("location:login.php");
}
$org_code = $_SESSION['org_code'];
$user_id = $_SESSION['user_id'];
$user_name = $_SESSION['username'];


$pk = mysql_real_escape_string($_POST['pk']);
$name = mysql_real_escape_string($_POST['name']);
$value = mysql_real_escape_string($_POST['value']);
$p_org_code = mysql_real_escape_string($_POST['org_code']);

$post_type = mysql_real_escape_string($_POST['post_type']);
if ($post_type == "checklist"){
//    $value = "[";
    for ($i = 0; $i < count($_POST['value'])-1; $i++) {
        $value .= $_POST['value'][$i] . ",";
    }
//    $value .= $_POST['value'][$i] . "]";
    $value .= $_POST['value'][$i];
}

if ($p_org_code == $org_code){
    $sql = "UPDATE `dghs_hrm_main_live`.`old_tbl_staff_organization` 
            SET 
                `$name` = \"$value\",
                `last_update` = \"". date("Y-m-d H:i:s") . "\",
                `updated_by` = \"$user_name\"   
            WHERE <commit_msg>update the database name into  "post_employee" file<commit_after><?php

require_once '../configuration.php';

if ($_SESSION['logged'] != true) {
    header("location:login.php");
}
$org_code = $_SESSION['org_code'];
$user_id = $_SESSION['user_id'];
$user_name = $_SESSION['username'];


$pk = mysql_real_escape_string($_POST['pk']);
$name = mysql_real_escape_string($_POST['name']);
$value = mysql_real_escape_string($_POST['value']);
$p_org_code = mysql_real_escape_string($_POST['org_code']);

$post_type = mysql_real_escape_string($_POST['post_type']);
if ($post_type == "checklist"){
//    $value = "[";
    for ($i = 0; $i < count($_POST['value'])-1; $i++) {
        $value .= $_POST['value'][$i] . ",";
    }
//    $value .= $_POST['value'][$i] . "]";
    $value .= $_POST['value'][$i];
}

if ($p_org_code == $org_code){
    $sql = "UPDATE `dghs_hrm_main`.`old_tbl_staff_organization` 
            SET 
                `$name` = \"$value\",
                `last_update` = \"". date("Y-m-d H:i:s") . "\",
                `updated_by` = \"$user_name\"   
            WHERE 
{'fraction_non_alphanumeric': 0.22797927461139897, 'fraction_numerical': 0.0018841262364578427, 'mean_word_length': 3.481012658227848, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6850206', 'n_tokens_mistral': 772, 'n_tokens_neox': 750, 'n_words': 114}