Basically i have few tables in MySql and im trying to create an array mixed with data from diferrent tables. I'm using AJAX to get the data from CFC. I've tried using different ajax requests to get the data from different tables but thats making my code very long.
First example table - user_info_tb
USER_ID | FULL_NAME |
----------------------------------------
2 Jack
3 John
4 Jamie
Second example table - post_tb
POST_ID | POSTED BY (USER_ID FROM THE FIRST TABLE) | TEXT |
----------------------------------------------------------------------------
1 2 Hi
2 3 Hello
3 4 Good Morning
how can i create an two dimensional array to to get something like this
[0]
[1]-[Jack]
[2]-[Hi]
[1]
[1]-[John]
[2]-[Hello]
[2]
[1]-[Jamie]
[2]-[Good Morning]