3
how can I do to return a query by grouping by the table name using Pdo, php and mysql ?
po example I want to make a query and return a json like this one here, using Pdo, has as?
{
"nome da tabela ": [{
"nome da coluna": "225",
"nome da coluna": "16",
}],
"outra tabela": [{
"nome da coluna": "226",
"nome da coluna": "16",
"nome da coluna": "95",
}, {
"nome da coluna": "226",
"nome da coluna": "16",
"nome da coluna": "99",
}]
}