queerfm
03-27-2009, 02:55 PM
Hi I have two tables that i need to be able to show the username when fetching data from table 2
Table 1 is called - team
the rows are:
id
teamname
teamlogo
in Table 2 - this table has the rounds so each team playing each other
The rows:
id - Match ID
team1 - Team A (this gets the ID from the first table)
team2 - Team B (this gets the ID from the first table)
However when I want to show the names of the team that is versing each other because the team names are not in table 2 I cant show them.
Can any one tell me how I get these two tables to communicate please.
Table 1 is called - team
the rows are:
id
teamname
teamlogo
in Table 2 - this table has the rounds so each team playing each other
The rows:
id - Match ID
team1 - Team A (this gets the ID from the first table)
team2 - Team B (this gets the ID from the first table)
However when I want to show the names of the team that is versing each other because the team names are not in table 2 I cant show them.
Can any one tell me how I get these two tables to communicate please.