guest online problem

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

No replies · 329 views · started 16 years ago · 1 min read

srecnica Developer · 174 posts #1

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 ...

mysql_query("INSERT INTO ibwf_online SET userid=0, actvtime='".time()."', place='guest page',  placedet='".getip()."-".$_SERVER['HTTP_USER_AGENT']."'");

index.php action=online

$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/>";

}

...What can I do to show all guests online?..help please;(

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close