Co tu jest źle, jak dam po linijce z file_put_contests np.
to wyświetla ale nie edytuje jsona
echo "<h1>1</h1>"
Jak do tabeli chcę dać wratość tego jsona to działa
I podaje, ale nie edytuje a nie mogę znaleźć czemu
<input type="radio" id="select-4" name="give-points4" value="select-4">
Plik json
{ "teams": [{ "pts4": "0", }] }
$array_data = json_decode($current_data, true); $array_data['teams']['0']['pts4'] = "$quantity"; $newJsonString = json_encode($array_data); file_put_contents('points.json', $newJsonString);