<?
if (isset($user))mysqli_query($dbi, "DELETE FROM `chat_who` WHERE `id_user` = '$user[id]'");
mysqli_query($dbi, "DELETE FROM `chat_who` WHERE `time` < '".($time-120)."'");
echo mysqli_num_rows(mysqli_query($dbi, "SELECT * FROM `chat_who`"));
?>