hello!
Reading a tutorial I found a query using Password for inserting a user’s input into a database.
I implemented it and tested it, the resulting string in the database is nothing like the one I inputted, which is logical since (from what i’ve read) password is an encrypting function.
But when I want to authenticate a user how then should I make the query?
Do I still have to use Password to encrypt the input and then compare??
thanks!
[code=php]
//For the time being im using this query to insert data
$query = “INSERT INTO Usuarios (Nick, Nombre, apellido1, apellido2, email, password) VALUES (‘$_nick’, ‘$_name’, ‘$_ape1’, ‘$_ape2’, ‘$_mail’, PASSWORD(‘$_pass’))”;