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