gbt91
15-04-2007, 07:24 PM
I'm working with this user system but i didnt find a way to put on the script for online users...
Help Me Plz:
Following there are the total/newest member script in case you can use it...
<?php
include('config.php');
// Query database
$count_sql = 'SELECT * FROM members';
$count_result = mysql_query($count_sql);
//gets the number
$count = mysql_num_rows($count_result);
echo $count; // displays the total members
$new = mysql_fetch_array(mysql_query("SELECT * FROM `members` ORDER BY `id` DESC LIMIT 0, 1")); // Gets the newest member
echo "Newest User: " . $new[username]; // displays the newest member
?>
Help Me Plz:
Following there are the total/newest member script in case you can use it...
<?php
include('config.php');
// Query database
$count_sql = 'SELECT * FROM members';
$count_result = mysql_query($count_sql);
//gets the number
$count = mysql_num_rows($count_result);
echo $count; // displays the total members
$new = mysql_fetch_array(mysql_query("SELECT * FROM `members` ORDER BY `id` DESC LIMIT 0, 1")); // Gets the newest member
echo "Newest User: " . $new[username]; // displays the newest member
?>