if (isset($_POST['name_ap'])) {
mysql_query("UPDATE `users` SET `name` = '".strip_tags(htmlspecialchars(mysql_real_escape_string(trim($_POST['name']))))."' WHERE `id` = '".$user['id']."' LIMIT 1");
$_SESSION['msg'] = 'Имя измЕнено!';
die(header('location: /prof_con.php'));
}
if (isset($_POST['name_ap'])) {
mysql_query("UPDATE `users` SET `name` = '".strip_tags(htmlspecialchars(mysql_real_escape_string(trim($_POST['name']))))."' WHERE `id` = '".$user['id']."'LIMIT 1");
$_SESSION['msg'] = 'Имя измЕнено!';
die(header('location: /prof_con.php'));
}
if (isset($_POST['name_ap'])) {
mysql_query("UPDATE `users` SET `name` = '".strip_tags(htmlspecialchars(mysql_real_escape_string(trim($_POST['name']))))."' WHERE `id` = '".$user['id']."' LIMIT 1");
$_SESSION['msg'] = 'Имя измЕнено!';
die(header('location: /prof_con.php'));
}
".$_POST['login']."
?'$_POST[login]
'