I want to edit the data in the MYSQL. but it is given a error and i can't find this one. this code below is to make the edit possible. thank you for your reply
if (isset($_POST['update']))
{ 
    include $_SERVER["DOCUMENT_ROOT"] . "/EZ2XS/testopdracht/html/config.php";
    $tag            = $_POST['tag'];
    $nr             = $_POST['nr'];
    $reference      = $_POST['reference'];
    $scores         = $_POST['scores'];
    $evaluates      = $_POST['evaluates'];
    $observations   = $_POST['observations'];
    $conform        = $_POST['conform'];
    $reports        = $_POST['reports'];
$query = "UPDATE `afwijking` SET 
    `tag`           ='$tag',
    `nr`            ='$nr',
    `reference`     ='$reference',
    `scores`        ='$scores',
    `evaluates`     ='$evaluates',
    `observations`  ='$observations',
    `conform`       ='$conform',
    `reports`       ='$reports',
     WHERE `ID`.`ID' = '1';";
    $result = mysqli_query($conn, $query);
    if ($conn->query($query) === TRUE)
    {
       echo 'DATA Updated';
    } else {
        echo 'DATA NOT UPDATED';
    }
    mysqli_close($conn);
}  
And here my table thats get his info from the myqsl
while($row = mysqli_fetch_array($records))
{
    echo "<tr><form method=post>";
    echo "<td><input type=text name=tag value='".$row['tag']."'></td>";
    echo "<td><input type=text name=nr value='".$row['nr']."'></td>";
    echo "<td><input type=text name=reference value='".$row['reference']."'></td>";
    echo "<td><input type=text name=scores value='".$row['scores']."'></td>";
    echo "<td><input type=text name=evaluates value='".$row['evaluates']."'></td>";
    echo "<td><input type=text name=observations value='".$row['observations']."'></td>";
    echo "<td><input type=text name=reports value='".$row['reports']."'></td>";
    echo "<td><input type=text name=conform value='".$row['conform']."'></td>";
    echo "<input type=hidden name=id value='".$row['ID']."'>";
    echo "<td><input type=submit name=update>";
    echo "</form></tr>";
}   
 
    