Show Your Support
$post[userid]
#$post[userid]
if (strpos($_SERVER['PHP_SELF'], "index.php") != false) { $result = $DB_site->query("SELECT userid, username, posts FROM user ORDER BY posts DESC LIMIT 5"); $top5 = array(); $shash = $session['sessionhash']; while ($bits = $DB_site->fetch_array($result)) { $userid = $bits['userid']; $username = $bits['username']; $posts = $bits['posts']; array_push($top5, "<a href=\"member.php?s=$shash&action=getinfo&userid=$userid\" target=\"blank\">$username</a> with $posts posts"); } $top5 = implode("<br>\n", $top5); }