Welcome Guest, Not a member yet? Register   Sign In
How to get results from a joined query
#7

[eluser]vitoco[/eluser]
[quote author="Mike Ryan" date="1238790728"]-------

Edit: Damn, someone beat me to it :-)

-------

Hi Steve,

Looks like using GROUP_CONCAT is causing the field to be renamed.

Try changing your SQL statement to:

Code:
... a.users_username, GROUP_CONCAT(b.game_id SEPARATOR ' ' ) as game_id FROM...

You could do print_r($row) during your loop to make sure the game_id value exists. This will print out the entire array structure - very useful.[/quote]

4 minutes baby !!! ...jajjajaja , but's ok , you response it's maybe more clear .


Messages In This Thread
How to get results from a joined query - by El Forum - 04-03-2009, 09:19 AM
How to get results from a joined query - by El Forum - 04-03-2009, 09:28 AM
How to get results from a joined query - by El Forum - 04-03-2009, 09:32 AM
How to get results from a joined query - by El Forum - 04-03-2009, 09:32 AM
How to get results from a joined query - by El Forum - 04-03-2009, 09:35 AM
How to get results from a joined query - by El Forum - 04-03-2009, 09:36 AM
How to get results from a joined query - by El Forum - 04-03-2009, 09:38 AM
How to get results from a joined query - by El Forum - 04-03-2009, 09:43 AM
How to get results from a joined query - by El Forum - 04-03-2009, 09:54 AM
How to get results from a joined query - by El Forum - 04-03-2009, 10:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB