$i=0;
while ($game = mysqli_fetch_assoc($games)){
$i++;?>
<tr <?php if(($i%2)==1){ ?> class="odd" <?php } ?>>
<td><a href="https://store.steampowered.com/app/<?php echo $game['id']; ?>" target="_blank"><?php echo $i;?>. <?php echo $game['name']?></a></td>
<td><?php echo $game['price']; ?>р</td>
<td><a href="https://steamcommunity.com/market/search?category_753_Game%5B%5D=tag_app_<?php echo $game['id']; ?>&category_753_cardborder%5B%5D=tag_cardborder_0&category_753_item_class%5B%5D=tag_item_class_2&appid=753#p1_price_asc" target="_blank"><?php echo $game['cards_count']; ?></a></td>
<td><?php echo $game['cards_price'] ?>р</td>
<td><?php echo $game['profit']; ?>р</td>
<td><?php echo $game['max_cards_price'] ?>р</td>
<td><?php echo $game['max_profit']; ?>р</td>
</tr>
<?php
}
'SELECT 'тут как-то надо вывести весь массив $headers' FROM my_table'