How to set a JSON value with JSON_replace MySQL function?
my code: $newElements=json_encode(['name'=>'jorge','age'=>23]); mysqli_query($db, "UPDATE dl SET data=json_replace(data, '$.list', cast('$newElements' as json)) WHERE id = '$ID' ") my Error: Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server…