Jump to content

[SOLVED] Quick Question


Ell20

Recommended Posts

Hi,

 

I have a query at the moment which works fine:

 

$query = "SELECT colour, type, type_2, player_id FROM dom_bogota";

 

However i would like to also get username from user_info table, I have tried using INNER JOIN:

 

SELECT colour, type , type_2, player_id, username FROM dom_bogota INNER JOIN user_info ON dom_bogota.player_id = user_info.id

 

However this only gives the results where username actually equals something.

 

Is there any way I can do the same thing but receive all results regardless of whether username equals something or not?

 

Thanks for any help!

Link to comment
https://forums.phpfreaks.com/topic/118329-solved-quick-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.