PHP 7.0, Mysql update query for JTABLE does not update database - only table

I am writing a simple table of python script results downloaded from the table in mysql. Table loads without any problem, but when I want to update some columns, updates take effect only in jTable, there is no action taken in MYSQL DB. Normally I do not write in PHP so I tried to google it but found no solution. Even here at stackoverflow.

SO I can not find an error... maybe somebody see why update at mysql server doesn't happen...

I am using

root@www:/var/db/mysql # php --version
PHP 7.0.27 (cli) (built: Jan 14 2018 23:38:26) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.27, Copyright (c) 1999-2017, by Zend Technologies

root@www:/var/db/mysql # mysql --version
mysql  Ver 14.14 Distrib 5.7.20, for FreeBSD10.3 (amd64) using  EditLine wrapper

To build my table I use jTable and jQuery

<link href="jquery-ui/themes/redmond/jquery-ui.css" rel="stylesheet" type="text/css" />

<script src="jquery/jquery-3.2.1.min.js" type="text/javascript"></script>
<script src="jquery-ui/jquery-ui.min.js" type="text/javascript"></script>


<!-- Include one of jTable styles. -->
<link href="/jtable/themes/metro/blue/jtable.min.css" rel="stylesheet" type="text/css" />

<!-- Include jTable script file. -->
<script src="/jtable/jquery.jtable.min.js" type="text/javascript"></script>
<meta charset="utf-8">

MY LOAD SITE LOOKS LIKE BELOW:

 <body>

  <div id="mieszkania" style="overflow:scroll;"></div>

  <script type="text/javascript">
    $(document).ready(function () {         
       $('#mieszkania').jtable({

            //General options comes here

            title: 'Lista mieszkań',
            //paging: true,
            //pageSize: 50,
            //sorting: true,
            //multiSorting: true,
            //defaultSorting: 'CENA ASC',


            actions: {
                //Action definitions comes here
                listAction: 'dbactions.php?action=list',
                updateAction: 'dbactions.php?action=update'


            },
            fields: {
                //Field definitions comes here
               ID: {
                    key: true,
                    create: false,
                    edit: false,
                    list: false,
                },
        UID: {
                    //key: true,
                    create: false,
                    edit: false,
                    //list: false,
                     width: '2%',
                },
                LINK: {
                    title: 'LINK',
                    width: '5%',
                    create: false,
                    edit: false,
                },
                CENA: {
                    title: 'CENA',
                    width: '7%',
                    create: false,
                    edit: false,
                },                

                METRAZ: {
                    title: 'M2',
                    width: '5%',
                    create: false,
                    edit: false,                    
                },
                ZAMETR: {
                    title: 'ZŁ/M2',
                    width: '7%',
                    create: false,
                    edit: false,
                },
                POKOJE: {
                    title: 'POKOJE',
                    width: '3%',
                    create: false,
                    edit: false,
                },
                AKTUALIZACJA: {
                    title: 'AKTUALIZACJA',
                    width: '3%',
                    create: false,
                    edit: false,
                },
                DODANE: {
                    title: 'DODANE',
                    width: '5%',
                    create: false,
                    edit: false,
                },
                DZIELNICA: {
                    title: 'DZIELNICA',
                    width: '3%',
                    create: false,
                    edit: false,
                },
                TELEFON: {
                    title: 'TELEFON',
                    width: '3%',
                    create: false,
                    edit: false,
                },
                NEW: {
                    title: 'NOWE',
                    width: '5%',
                    create: false,
                    //options: { 'T': 'TAK', 'N': 'NIE' },
                },
                UPDATED: {
                    title: 'ZMIANA',
                    width: '5%',
                    create: false,
                    //options: { 'T': 'TAK', 'N': 'NIE' },

                },
                FOTO1: {
                    title: "FOTO1",
                    width: '5%',
                    edit: false,
                    create: false,
                    display: function (data) {
                        return data.record.FOTO1 ;
                        }
                 },
                FOTO2: {
                    title: "FOTO2",
                    width: '5%',
                    edit: false,
                    create: false,
                    display: function (data) {
                        return data.record.FOTO2;
                        }
                },
                FOTO3: {
                    title: "FOTO3",
                    width: '5%',
                    edit: false,
                    create: false,
                    display: function (data) {
                        return data.record.FOTO3;
                        }
                },
                FOTO4: {
                    title: "FOTO4",
                    width: '5%',
                    edit: false,
                    create: false,
                    display: function (data) {
                        return data.record.FOTO4;
                        }
                },
                FOTO5: {
                    title: "FOTO5",
                    width: '5%',
                    edit: false,
                    create: false,
                    display: function (data) {
                        return data.record.FOTO5;
                        }
                },
                ASIA: {
                    title: 'ASIA',
                    width: '5%',
                    create: false,
                    edit: true,
                    //options: { '0': '0', '1': '1', '2': '2', '3': '3', '4': '4', '5': '5', },
                },
                DAWID: {
                    title: 'DAWID',
                    width: '5%',
                    create: false,
                    edit: true,
                    //options: { '0': '0', '1': '1', '2': '2', '3': '3', '4': '4', '5': '5', },
                },
                OK: {
                    title: 'DOBRE?',
                    width: '5%',
                    create: false,
                    edit: true,
                    //options: { 'T': 'TAK', 'N': 'NIE' },
                },
                KOMENTARZ: {
                    title: 'KOMENTARZ',
                    width: '100%',
                    create: true,
                    edit: true,
                }
            }

            //Event handlers...

        }); 
        $('#mieszkania').jtable('load');
    });
</script>

  </body>
</html>

MY DB CONNECTION AND ACTIONS PART LOOKS LIKE BELOW:

<?php
try
{
    //open connection
    $link = mysqli_connect("127.0.0.1", "root", "PASSWORD", "testy");

    /*
    if (!$link) {
        echo "Error: Unable to connect to MySQL." . PHP_EOL;
        echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
        echo "Debugging error: " . mysqli_connect_error() . PHP_EOL;
        exit;
    }

    echo "Success: A proper connection to MySQL was made! The my_db database is great." . PHP_EOL;
    echo "Host information: " . mysqli_get_host_info($link) . PHP_EOL;

    */

    /* return name of current default database */

    /*
    if ($result = $link->query("SELECT DATABASE()")) {
        $row = $result->fetch_row();
        printf("Default database is %s.\n", $row[0]);
        $result->close();
    }
    */

    //Getting records (listAction)
    if (isset($_GET['action'])) {
        if($_GET["action"] == "list")
        {
            //Get records from database
            $result = $link->query("SELECT * FROM mieszkania");

            //Add all records to an array
            $rows = array();
            while($row = mysqli_fetch_array($result))
            {
                $rows[] = $row;
            }

            //Return result to jTable
            $jTableResult = array();
            $jTableResult['Result'] = "OK";
            $jTableResult['Records'] = $rows;
            print json_encode($jTableResult);
        }   
            //Updating a record (updateAction)
        else if($_GET["action"] == "update")
        {
            //Update record in database

            $result = $link->query("UPDATE `mieszkania` SET NEW = '{$_POST["NEW"]}', UPDATED = '{$_POST["UPDATED"]}', ASIA = '{$_POST["ASIA"]}', DAWID = '{$_POST["DAWID"]}', OK = '{$_POST["OK"]}', KOMENTARZ = '{$_POST["KOMENTARZ"]}' WHERE ID = '{$_POST["ID"]}';");
            //$link->commit();
            //Return result to jTable
            $jTableResult = array();
            $jTableResult['Result'] = "OK";
            print json_encode($jTableResult);
        }

    }


    //close connection
    mysqli_close($link);
}
catch(Exception $ex)
{
    //Return error message
    $jTableResult = array();
    $jTableResult['Result'] = "ERROR";
    $jTableResult['Message'] = $ex->getMessage();
}
?>

I hava also tried solution found here to debug it myself but jtable throw empty error

    if(mysqli_query($link,"UDPATE `mieszkania` SET
        (`NEW`, `UPDATED`, `ASIA`, `DAWID`, `OK`, `KOMENTARZ`) 
        VALUES 
        ('','".$_POST["NEW"]."','".$_POST["UPDATED"]."','".$_POST["ASIA"]."','".$_POST["DAWID"]."','".$_POST["OK"]."','".$_POST["KOMENTARZ"]."' WHERE ID` = '" . $_POST["ID"] . "' ;")){ $jTableResult['Result'] = "OK";
        }else{
        $jTableResult['Result'] = "KO";
        }
            print json_encode($jTableResult);