php - SELECT limiting to only results based on a CSV list from a separate table -


So I have a list of CSV in a table (Example: 1,3,19 ) I want to find all the user names from the other table where the ID matches anybody.

I think I should be able to:

   

But I can not get it to work. What am i doing You can also use (which will be faster)

$ playerquery = "Select where the id is from players with id, (select player_ids from cast_list where game = ''. $ Gameid." 'ORDER BY Username ";

If the BTW game is an integer field, you get the quotation marks ( ' ' ).

< / Html>

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -