Loading...
Помощь по скриптам | Проблема с кодом
Делаю выбор пола для юзера:


<?
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)
Помогите исправить
Соединение с базой проверяй, что ж ещё то?
Подключеник к бд неправильное.
Сама ошибка звучит как: нет доступа к бд, пароль не используется
Онлайн: 4
Время:
Gen. 0.0885
(c) Bym.Guru 2010-2026