Hello. Created common form of this kind:
<form action="add.php" method="POST">
<input type="text" name="login">
<input type="text" name="pass">
File add.php writes the data in the database thus:
$sth = $db->prepare("INSERT INTO `user` SET `login` =:login, `pass` =:pass");
$sth->execute(array('login' => $login, pass => $pass));
No errors, nothing. The records in the database making through time.
1) at First I thought that might be the problem. I spam all such data which already exist, but that role is not played.
2) thought it was due to the fact that some fields are not filled. But it too not that.
PHP and programming study recently, can't understand what's wrong. Please tell me what could be wrong?