I have several different tables in my database(mySQL).
Here are the relevant coumns for the tables
table_tournaments
- tournamentId
- tournamnetName
- tournamentStatus
table_tournament_results
- tournamentId
- playerId
- playerName
- playerRank
- tournamnetParticipants
table_players
- playerId
- playerName
The tournaments table contains the information about the tournament, the tournament results table shows the results from that table
I want to search the tournaments table by name and then with the returned results get the information from the tournament results table.
SELECT * FROM `tournaments` `WHERE` `tournamentName` LIKE "%Query%"
I'm not sure how to go about this, maybe I need to do something via PHP, any and all help is appreciated.