So are you giving me a MySQL query here? eg:
$result = mysql_query("SELECT DATE_SUB(lastactive, INTERVAL 5 MINUTE) FROM users WHERE id = '$id'");
am i doing this right?
i have a field in my database called "lastactive" as i've included above. also, is there an easier way to do this without doing the math while taking it out of the database?
thanks.