You need to use a separate page which queries only the logo form the database and outputs it with the appropriate Content-Type, i.e image/gif. Also, there is no need to use echo to produce HTML:
PHP Code:
<?php while( $row = mysql_fetch_assoc($sql)): ?>
<tr class="A">
<td><img src="get_logo.php?id=<?php echo($row['id']) ?>" alt="Logo" ></td>
<td><?php echo($row['W']) ?></td>
<td><?php echo($row['L']) ?></td>
<td><?php echo($row['PCT']) ?></td>
<td><?php echo($row['GB']) ?></td>
</tr>
<?php endwhile; ?>