I am trying to select the Team Names. I have a GameHomeTeamID and a GameVisitorTeamID In my ITGame table in the database.
The team names associated with those ID's are in another table in the database called ITTeam.
Could I somehow select the team names with one statement??
eg) something like:
$sql = "SELECT ITGame.GameHomeTeamID, ITGame.GameVisitorTeamID, ITTeam.TeamName, ITTeam.TeamName
FROM ITGame
LEFT JOIN ITTeam ON ITGame.GameHomeTeamID = ITTeam.TeamID AND ITGame.GameVisitorTeamID= ITTeam.TeamID.
I know this probably isn't right but does anyone have any idea how to do this??
Thanks sooooo much for you time.