I’m trying to display all the users who are currently online within the past 15 mins. At the moment I’m using this code, but it isn’t working.
$link = mysql_connect("localhost", "tmhai", "*******");
mysql_select_db("tmhai_mint", $link);
$result = mysql_query("SELECT * FROM mint_visit WHERE dt <= (". time() ." - 900)", $link);
$num_rows = count($result);
Would someone be able to help me out on this here.