diff --git a/plt/index.php b/plt/index.php index e29bf9a..e160364 100755 --- a/plt/index.php +++ b/plt/index.php @@ -197,7 +197,11 @@ function updateDatabaseRow($tableName, $originalRow, $newRowValue) { } $sql_instruction = "UPDATE $tableName SET " . implode(", ", $setStatements) . " WHERE " . implode(" AND ", $whereStatements); - sql($sql_instruction); + try {sql($sql_instruction);} + catch (Exception $e) { + echo "ERROR: while trying $sql_instruction\n\n";print_r($e->getMessage()); + } + } function updateTriggerError($tableName, $error) {