is this the correct thing
$time = mktime(date("s"), date("i")-2, date("h"), date("m"), date("d"), date("Y"));
$sql = "SELECT * FROM users WHERE lastactive >= '$time' LIMIT $offset, $rowsperpage";
$result = mysql_query($sql);
// while there are rows to be fetched...
while ($list = mysql_fetch_assoc($result)) {
// echo data
echo "<tr><td class='NormalContent' style='border:thin solid #AA4B00;'><a href='users.php?id=".$list['ID']."'>".$list['Username']."</a></td></tr>";
}