H
H
hellcaster2018-02-20 15:37:34
PHP
hellcaster, 2018-02-20 15:37:34

Not registering a user?

Does not register the user on the site. I'm doing a very simple blog (just for myself). I made a simple check for empty input and proceed to registration, but it does not register me. Here is the code. Doesn't see any errors. The user does not appear in the database

$data = $_POST;

mysqli_query($db_connect, "INSERT INTO `users` (`name`, `pass`) VALUES ('". $data["login"]."','" . $data["password"] ."'");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stimulate, 2018-02-20
@web_Developer_Victor

You forgot to close the bracket
And advice from myself, filter all incoming data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question