Using Medoo how do I echo the values from the select query currently this is what I am doing using the example from the docs.
$data = $database->select('names', [
'name','nameId'
], [
'nameId' => 50
]);
echo json_encode($data);
the result is:
[{"name":"Allen","nameId":"50"}]
How can I echo each one without json_encode?
I have tried:
$data['name']
But that doesn't work.