I have two tables that are the same. One stores info for the offense and a second for a defense.
$sql = mysql_query("SELECT player FROM offense GROUP BY player
UNION
SELECT player FROM defense GROUP BY player");
while ($row = mysql_fetch_array($sql)) {
$player = ($row['player']);
echo "$player<br>";
}
The problem I have is that it lists all the players, but if there's a player playing for both sides (ie: his name is listed in both tables) his name gets listed twice?
(this is just a simple example, but I'm trying to solve a bigger issue and this little one is holding me back on that.)