<?php function mail_send($user = 0,$user_id = 0,$msg = null) { query("INSERT INTO `mail` (`id_user`, `id_kont`, `msg`, `time`) values ('". $user ."', '". $user_id ."','".my_esc($msg)."','".time()."');"); }