cancel
Showing results for 
Search instead for 
Did you mean: 

question about mysql

orthohin
Grand Master
So I have mysql db with 2 tables

1 table "player"
id | player name

and the other table "playerdata"

player_id | data | etc


How can I make a single sql query that takes a specified playername and looks it up in the first table, and then uses that players 'id' in the 2nd table "playerdata"

Pretty new to mysql and php(somewhat anyway)

I can do it by making 2 queries, but I was wondering if it isn't just possible to make mysql do the extra working in finding that players id and then using it.
 
Thanks
0 REPLIES 0