register_shutdown_function(function () {
//Do something here
});
$autozapros = mysql_query(
"SELECT *
FROM `profile`
WHERE
login_prof='$_SESSION[login_prof]' AND
id_com_prof LIKE '%$_SESSION[id_com_prof]%'",
$db
);
$profile = mysql_fetch_array($autozapros);