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 ...
index.php action=online
...What can I do to show all guests online?..help please
Code:
mysql_query("INSERT INTO ibwf_online SET userid=0, actvtime='".time()."', place='guest page', placedet='".getip()."-".$_SERVER['HTTP_USER_AGENT']."'");
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&who=$item[2]&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/>"; }