Login   Register  
PHP Classes

File: view_active.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of rm  >  PHP MySQL Login 5 levels of Hierarchy  >  view_active.php  >  Download  
File: view_active.php
Role: Example script
Content type: text/plain
Description: view active
Class: PHP MySQL Login 5 levels of Hierarchy
Manage site users within 5 levels of hierarchy
Author: By
Last change:
Date: 5 years ago
Size: 784 bytes


Class file image Download
if(!defined('TBL_ACTIVE_USERS')) {
"Error processing page");

." ORDER BY timestamp DESC,username";
$result $database->query($q);
/* Error occurred, return given name by default */
$num_rows mysql_numrows($result);
$result || ($num_rows 0)){
"Error displaying info";
else if(
$num_rows 0){
/* Display active users, with link to their info */
echo "<table align=\"left\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n";
"<tr><td><font size=\"2\">\n";
$uname mysql_result($result,$i,"username");

"<a href=\"userinfo.php?user=$uname\">$uname</a> / ";