View file wapirate/top/random.php
<?php
$sql = "SELECT id, name, description FROM ibwf_clubs ORDER BY RAND() LIMIT 1";
echo "<p><small>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$lnk = "<a href=\"index.php?action=gocl&clid=$item[0]&sid=$sid\">".htmlspecialchars($item[1])."</a><br/>".htmlspecialchars($item[2])."<br/>";
echo $lnk;
}
}
echo "</small></p>";
?>