How can one properly decode JSON data stored in a MySQL database and display it using a foreach loop in PHP?

To properly decode JSON data stored in a MySQL database and display it using a foreach loop in PHP, you need to retrieve the JSON data from the database, decode it using the `json_decode` function, and then iterate over the decoded array using a foreach loop to display the data.

// Retrieve JSON data from MySQL database
$jsonData = $row['json_column'];

// Decode JSON data
$data = json_decode($jsonData, true);

// Display data using foreach loop
foreach ($data as $key => $value) {
    echo $key . ': ' . $value . '<br>';
}