Post: #1
|
||
XAKERA Joined: 19-12-2006 Posts: 1 Country: |
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)
|
|
fantinsh Joined: 20-12-2006 Posts: 12 Country: |
everybody look it maybe you need to add this in index.php...
CODE: $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: CODE: $dt = gmtime() - 180; $dt = sqlesc(get_date_time($dt)); .......... and... make style like you want... smthn like i have : CODE: <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"> <br> <?=$activeusers?><br> Latest user: <b><?=$latestuser?></b>.<br> </table> </td></tr></table> |
|
|
Post: #3
|
|
lasha12345 Joined: 14-11-2006 Posts: 89 Country: |
everybody look it Total Online(
): i think you have $res=mysql query just not showing number of online users CODE: <h2> Total Online( <?=$totalactive?> ):</h2> <br /> <?=$activeusers?> <br /> i think you have $res=mysql query just not showing number of online users ss |
|
|
«
Previous Thread
|
Next Thread
»
|