Dit is me script, maar hij staat alsnog niet op de volgorde van hits, heel raar.
PHP
<?php
include('config.php');
?>
<table border='0' cellspacing='1' width='100%' bgcolor='#000' align='center'>
<tr>
<td class='top' width='20'> <b>#</td><td class="top" width="100%" align="center">Clip</td><td class="top" align="center" width="20">Hits</td>
</tr>
<?php
$i=0;
$query = mysql_query("SELECT * FROM rapvideos ORDER BY `hits` DESC,`hits` ASC LIMIT $i,100");
while($arr = mysql_fetch_assoc($query))
{
$i++;
?><font color="#fff">
<tr><td align="center" class="inhoud"><?php echo $i; ?></td><td align="left" class="inhoud"><a href="?p=video&id=<?php echo $arr['id']; ?>"><?php echo $arr['naam']; ?></a></td>
<td align="center" class="inhoud"><?php echo $arr['hits']; ?> x</td>
</tr></font>
<?php
}
?>
</table>
Toon Meer