guest online problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    guest online problem

    this is code for guest online .. and it works fine, but I have a problem because we in the online list shows only one (last activity) guest ...
    Code:
    mysql_query("INSERT INTO ibwf_online SET userid=0, actvtime='".time()."', place='guest page',  placedet='".getip()."-".$_SERVER['HTTP_USER_AGENT']."'");
    index.php action=online
    Code:
    $sql = "SELECT id,place,userid,placedet,hidden,browserm from ibwf_online WHERE hidden= 0
    LIMIT $limit_start, $items_per_page";
    
    $lnk = "$seximg <a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">".getnick_uid($item[2])."</a> <br/><b>Status: $status <br/>Trenutno $item[1]</b>";
       if($item[2]==0) {
                
    echo "<b>- GUEST  online -IP $item[3]-- Browser $item[5]<br/>Trenutno: $item[1] </b><br/>-----<br/>";
    }
    
    
    else 
    {
    
    echo "$lnk<br/><br/>-----<br/>";
    
    
    }
    ...What can I do to show all guests online?..help please
    sigpichttp://happy.srecnica.com/web
Working...
X