<? include_once "inc/ connect.php"; include_once "function.php"; if(isset($_POST['submit'])){ $pol = intval($_POST['pol']); mysql_query("UPDATE user SET pol ='$pol' WHERE id ='".$user['id']."'") or die(mysql_error()); echo '<center><font color="green">Сохранено!</center></font>'; } ?> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>Мир Теней</title> <link type="text/css" rel="stylesheet" href="/css.css"/> <form action="" method="POST"> <input type="radio" name="pol" value="0" checked /> <font color="white">Мужской</font> <input type="radio" name="pol" value="1" /><font color="white">Женский</font><br/> <input type="submit" name="submit" value="Установить"></form></center>
Access denied for user ''@'localhost' (using password: NO)