$jsonNome = json_encode($nome);
$jsonChecked = json_encode($checked);
}
$sql ="INSERT INTO tabella (nome, stato) VALUES ( '$jsonNome', '$jsonChecked')";
$query=$mysqli->query($sql);
$sql2 = "SELECT Name, CountryCode FROM City ORDER by ID LIMIT 3"; //dal manuale mySql
$query2 = $mysqli->query($sql2); //dal manuale mySql
$sql2 ="SELECT nome, stato FROM tabella";
$query2=$mysqli->query($sql2);
$row = $query2->fetch_array(MYSQLI_ASSOC); //dal manuale mySql
$row=$query2->fetch_array(MYSQLI_ASSOC);
printf ("%s (%s)\n", $row["Name"], $row["CountryCode"]); //dal manuale mySql
$nome = json_decode($row['nome']);
$checked = json_decode($row['stato']);
echo $nome[15];