Iwant to find the numer of people who have accessed my site in the last five minutes. (but i abviously having difficulties). at the moment i have been trying and experimenting with the following code:
but doesnt to anything for me.PHP Code:$on_online = mysql_query("SELECT count(*) FROM activity WHERE lactive>('$date $time'-'0000-00-00 00:00:05')");
how can it be done ? (preferable through SQL and not too much PHP).



is there maybe a mysql functions or something, maybe a tutorial that you could point me to that i might be able to learn from ? (i dont generaly use C&P'd code)

Bookmarks