include "include/ts_functions.php"; if (isset($_GET["action"])){$lim = $_GET["action"];}else{$lim = "10";} $result = sql_query("SELECT * FROM users ORDER BY class DESC,invites LIMIT 10"); echo " name Registered Last Login Last Access invite "; while($row = mysql_fetch_array($result)) { echo ""; echo "" . $row['username'] . ""; echo "" . $row['added'] . ""; echo "" . $row['last_login'] . ""; echo "" . $row['last_access'] . ""; echo "" . $row['invites'] . ""; echo ""; } Or try this Code: if (isset($_GET["action"])){$lim = $_GET["action"];}else{$lim = "10";} $db=mysqli_connect("localhost","root","PASSWORD","DB_NAME"); $result = mysqli_query($db,"SELECT * FROM users ORDER BY class DESC,invites LIMIT $lim"); echo " name Registered Last Login Last Access invites "; while($row = mysqli_fetch_array($result)) { echo ""; echo "" . $row['username'] . ""; echo "" . $row['added'] . ""; echo "" . $row['last_login'] . ""; echo "" . $row['last_access'] . ""; echo "" . $row['invites'] . ""; echo ""; } echo ""; remember if you are going to use the second one, you will need to add your db info If you want more results then do the following.. Code: /filename.php?action=1000 and change the number to how many you wont all just add the TS7.2 pager function Catralkid 1st March 2014 11:33 Thank you for your reply Firefly, but that is all greek to me. Where do I add that to? mehr672 27th March 2014 07:27 You can add easily in 7.2 Just invite your friends to this site. All times are GMT +2. The time now is 03:38. Powered by vBulletin® Version 3.8.11 Beta 3Copyright ©2000 - 2024, vBulletin Solutions Inc.
if (isset($_GET["action"])){$lim = $_GET["action"];}else{$lim = "10";} $db=mysqli_connect("localhost","root","PASSWORD","DB_NAME"); $result = mysqli_query($db,"SELECT * FROM users ORDER BY class DESC,invites LIMIT $lim"); echo " name Registered Last Login Last Access invites "; while($row = mysqli_fetch_array($result)) { echo ""; echo "" . $row['username'] . ""; echo "" . $row['added'] . ""; echo "" . $row['last_login'] . ""; echo "" . $row['last_access'] . ""; echo "" . $row['invites'] . ""; echo ""; } echo "";
/filename.php?action=1000
Powered by vBulletin® Version 3.8.11 Beta 3Copyright ©2000 - 2024, vBulletin Solutions Inc.