<td><?php createSummaryTable($db, 1, "First Place", false, pow(2, 15 - $numSelectedGames), $_REQUEST['sort']); ?> </td> <td><?php createSummaryTable($db, 2, "Second Place", false, pow(2, 15 - $numSelectedGames), $_REQUEST['sort']); ?> </td> <td><?php createSummaryTable($db, 3, "Third Place", false, pow(2, 15 - $numSelectedGames), $_REQUEST['sort']); ?> </td> </tr> <tr> <td colspan='3'><?php createSummaryTable($db, $lowestRank, "Last Place", false, pow(2, 15 - $numSelectedGames), $_REQUEST['sort']); ?> </td> </tr> </table> <?php } } else { echo "Shouldn't get here. Should be at if.php"; } } ?> <div id="footer"> </div> </div>
for ($showRanks = 1; $showRanks <= $maxScoreRanks; $showRanks++) { echo "<td>"; $rankName = ordinal_suffix($showRanks) . " Place"; createSummaryTable($db, $showRanks, $rankName, $viewAll, $summary_data['num_scenarios'], $_REQUEST['sort']); echo "</td>"; if ($showRanks % 3 == 0) { echo "</tr>"; if ($showRanks < $maxScoreRanks) { echo "<tr>"; } } } if (($showRanks - 1) % 3 != 0) { echo "</tr>"; } ?> <tr> <td colspan='3'><?php createSummaryTable($db, $lowestRank, "Last Place", $viewAll, $summary_data['num_scenarios'], $_REQUEST['sort']); ?> </td> </tr> </table> </div> </div> <div id="footer"></div> </div> </body> </html>