- var_dump: documentation ( source)
- error_reporting: documentation ( source)
<?php
error_reporting(-1); // PHP 7.1 ALL error
$nuova_data = '2021-10-05';
$row['BookID'] = 1;
$query = "UPDATE book SET year = '$nuova_data' WHERE BookID = '$row'['BookID']";
//$query2 = $query = "UPDATE book SET year = '$nuova_data' WHERE BookID = '{$row['BookID']}'";
var_dump($query);