I have multiple tables with options for my software, I want to request them in a single request(Database postgress, php pdo) and return it like in the following example.
--- table userStatus ---
-- id -- -- name --
1 loggedIn
2 loggedOut
--- table customerStatus ---
-- id -- -- name --
1 active
2 nonActive
The response should be formatted like:
O =>
userStatus=>
1 = loggedIn,
2 = loggedOut
customerStatus =>
1 = active,
2 = nonActive
Tried it with different fetch methods but nothing came to this solution. In the end I done now 20 requests and combine them manually : )