Thread Options  Search this Thread  
Post: #1
20-12-2006 21:59 PM

Joined: 19-12-2006
Posts: 1
Country: Greece
Male XAKERA is Offline now
everybody look it
i edit total online in index.php but shot this and don't show number's how many people in site! Users Online ()
plz somebody post good user online! if somebody have good tracker statistic post it!

Post: #2
21-12-2006 11:23 AM (This post was last modified: 21-12-2006 11:28 AM by fantinsh)

Joined: 20-12-2006
Posts: 12
Country: Latvia
Male fantinsh is Offline now
everybody look it
maybe you need to add this in index.php...

$dt = gmtime() - 180;
$dt = sqlesc(get_date_time($dt));
$result = mysql_query("SELECT SUM(last_access >= $dt) AS totalol FROM users") or sqlerr(__FILE__, __LINE__);

while ($row = mysql_fetch_array ($result))
$totalonline          = $row["totalol"];

add before this code:

$dt = gmtime() - 180;
$dt = sqlesc(get_date_time($dt));

and... make style like you want... smthn like i have :
<h2>Online users: (<?=$totalonline?>)</h2>
<table width="100%" border="1" cellspacing="0" cellpadding="10"><tr><td align="left">
<table class="main" border="1" cellspacing="0" cellpadding="5">
 Latest user: <b><?=$latestuser?></b>.<br>

Post: #3
21-12-2006 12:34 PM

Joined: 14-11-2006
Posts: 89
Country: Burkina Faso
Male lasha12345 is Offline now
everybody look it
 Total Online(



i think you have $res=mysql query just not showing number of online users
<h2> Total Online(
      <br />
      <br />

i think you have $res=mysql query just not showing number of online users ss

Quick Reply
Decrease Size
Increase Size
Insert bold text Insert italic text Insert underlined text Align text to the left Align text to the centerr Align text to the right Justify text Insert quoted text Code Insert formatted PHP code Insert formatted SQL code
Insert hyperlink Insert image Insert email address
Insert hidden text

Forum Jump: