When the button for team emails is clicked, only coaches are displayed. This is because it is not searching for the team emails, but tournament emails. Add a tournamentemailteams.php file that is the same as tournamentemails.php but change call to function. The function is already made to handle team numbers sent. Also, make sure that you can only see your team.
When the button for team emails is clicked, only coaches are displayed. This is because it is not searching for the team emails, but tournament emails. Add a tournamentemailteams.php file that is the same as tournamentemails.php but change call to function. The function is already made to handle team numbers sent. Also, make sure that you can only see your team.