Okay...I've read the numerous posts here on the forum about creating "members online" type scripts and have gotten the basic idea but now i'm getting a little confused about the timestamp issues...so here's what i've done so far....there is already a table in the database called "users" that has each users info...i added a field called "lastclick" which gets updated with at timestamp each time the user accesses a certain page. Now...what i'm trying to do is display the users active in the last 5 minutes...here's my php so far:
$result=mysql_query "SELECT * FROM users";
if (!$result) {
echo("<p>Error performing query: " . mysql_error() . "</p>");
exit();
}
while($row = mysql_fetch_array($result)){
echo $row['$playername'] }
but it's not working...and I still haven't figured out how to get the timestamp and only display activity within the last 5 min.