I have a general question regarding the assigning of sql results to a arrays. What should I do when I want to assign some results to an array and when I am joining two or more tables and some columns got the same name:
Example:
$sqlExample = "select u.first_name, o.first_name from tbl_user u join tbl_owner o on u.user_id = o.user_id where u.user_id = $user_id;";
...
$userFirstName[$var] = $result['first_name'];
$ownerFirstName[$var] =
I know, that this is not a great example, but I hope that you are understanding my question.. I thought I could use something like the table prefix for the results, but it didn't worked.
-- Just an example not the code I am using/