Hi,
May be the issue is with this line (which is inside while loop)
$html = '<html><body><h4><center>Event Schedule</center></h4>'; Take it above while loop and secondly its better to write this line above while loop
$html .= '<table class = "bpmTopnTailC" align="center"><thead> and just create the table rows inside while-loop like this
while ($rows = mysql_fetch_array($result)) {
$html .= '
<tr class="headerrow">
<th>Competing Team' . "<br/> ". $rows['team'] . '</th>
<th><p>Date</p>' . $rows['date'] . '</th>
<th><p>Time</p>' . $rows['time'] . '</th>
<th><p>Venue</p>' . $rows['venue'] . '</th>
</tr>';
}
$html .= '</thead></table>';
$html .= '</body></html>';
and so on . . .
Hope this will be helpful to you :)