MyBB Community Forums

Full Version: Something wrong
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,
If I use this query

$query = $db->simple_select("users", "COUNT(uid) AS activeusers", "lastvisit > '$timecut'");

 $activeusers = my_number_format($db->fetch_field($query, "activeusers"));


And then I get it using this {$activeusers}, it works but it gives me the total registered members instead.

Any idea?
did you declare what $timecut equals to...


$timecut = TIME_NOW - 86400;
(2015-05-31, 06:28 AM)mmadhankumar Wrote: [ -> ]did you declare what $timecut equals to...


$timecut = TIME_NOW - 86400;

That did the trick, thank you!