- PHP: Select all
foreach ($games as $game) {
$link = get_game_link("id="._sp($game['id']));
if ($i === 0)
{
echo '<div style="width: 118px;float: left;">';
}
echo '<div><a href="' . $link.'">'.$game['name'].'</a><br /></div>';
$i++;
if ($i == 20) {
echo '</div>';
$i=0;
}
// - ".$game['rating']."
}
This code fixes it so that there will be 20 links per column.