<a class="uname" href="/?user=<?php echo $row['user'] ?>"><?php echo $row['user'] ?></a>
</span>
- <ul class="tags">
- <?php foreach($row['tags'] as $tag) : ?>
- <li><a href="/tags.php?tag=<?=$tag?>"><?=$tag?></a></li>
- <? endforeach; ?>
- </ul>
+ <ul class="tags">
+ <?php foreach($row['tags'] as $tag) : ?>
+ <li><a href="/tags.php?tag=<?=$tag?>"><?=$tag?></a></li>
+ <? endforeach; ?>
+ </ul>
<?php
if ($user = get_user()):
else {
*/
$q = $dbh->prepare("SELECT * FROM tags
- ORDER BY tag DESC");
+ ORDER BY count DESC, tag ASC");
$q->execute();
//}
<?php for($i = 0; $row = $q->fetch(); $i++ ):
?>
- <li><span class="tag"><a href="<?php echo $row['tag'] ?>"><?php echo $row['tag'] ?></a></span></li>
+ <li><span class="tag"><a href="<?php echo $row['tag'] ?>"><?php echo $row['tag'] ?></a> <?php echo $row['count'] ?></span></li>
<?php endfor; ?>
</ul>