My database structure is
Teams-Team_ID, Team, League_ID, Country_ID
Leagues-League_ID, League
Country-Country_ID, Country
Badges-Badge_ID, Badge, Team_ID
Below i have the SQL query which is kinda working.
SELECT teams.team, teams.country_ID
FROM teams
INNER JOIN country
ON teams.country_ID = country.country_ID
WHERE country.country = 'England'
LIMIT 0 , 92")
Not i wont lie, i have no idea what that means, i just changed it until it worked *facepalm*
currently it echos out Team_ID-->Team-->_country_ID
what i want it to echo out is not the country_ID, but the country name itself and the league name. the way in which it kinda works is because the WHERE statement is equal to England and it correctly returns all teams with a country ID of 6 (which is england)
Would really appreciate someone who knows a thing or two to re-write the little snippet of code for me.
thanks
Help
















