Currently getting json results:
{
"post_company_success_company_address_ibfk_1": [
"123 Main Street N\/A Cincinnati Ohio 45500"
]
}
The goal is include address as a separate JSON object in an array attribute of the company object.
I have tried this:
$real= json_encode(['post_company_success_'.$randomname => {[ $result2]}], JSON_PRETTY_PRINT);
It did not work.
$_POST,$_GETor any user data directly in your query. Refer to PHP The Right Way for general guidance and advice.JSON.parse. If you have multiple documents, split them apart and process them individually.$combo?