// $umq = $db->query("SELECT * FROM `users` WHERE `id` != '". $user['id'] ."'");
// while($um = $umq->fetch()) {
// if ($db->query("SELECT * FROM `mail_chat` WHERE (`user_id` = '$user[id]' OR `who_id` = '$user[id]') AND (`who_id` = '". abs(intval($_GET['user_id'])) ."' OR `user_id` = '". abs(intval($_GET['user_id'])) ."')")->rowCount() == 0) {
// $db->query("INSERT INTO `mail_chat` SET `user_id` = '$user[id]', `who_id` = '". $um['id'] ."', `time_last_message` = '". time() ."'");
// }
// $db->query("INSERT INTO `mail_chat` SET `user_id` = '$user[id]', `who_id` = '". $um['id'] ."', `time_last_message` = '". time() ."'");