i want to random site function instead of new site added function so any export or Gumslon help me .
what will be // function of the Random site
PHP Code:
// function of the new site
$r=mysql_query("SELECT link FROM users ORDER BY uid DESC");
$new=mysql_fetch_array($r);
$new[0]=htmlspecialchars($new[0]);
$new1 = str_replace("http://","",$new[0]);
$rr=mysql_query("SELECT uid FROM users ORDER BY uid DESC");
$newss=mysql_fetch_array($rr);
$newss[0]=htmlspecialchars($newss[0]);
$rrR=mysql_query("SELECT site_name FROM users ORDER BY uid DESC");
$newssR=mysql_fetch_array($rrR);
$newssR[0]=htmlspecialchars($newssR[0]);
echo "<div class='titleMain'><div class='titleSubLeftBottom'>Newest Site</div></div> <a href='stat.php?uid=$newss[0]'><span style='color: rgb(255, 0, 0);'>»</span> $newssR[0]</a>";
Comment