When I insert the password using the password function.
E.g
password($PASSWORD) I just get the sql not executing, while if I insert using
password($PASSWORD) what is inserted is password($PASSWORD) .
When I browse the table contents I see the password field as password($PASSWORD).
If I try an output the function using password($PASSWORD) I get the error.
Fatal error: Call to undefined function: password() in /content/StartupHostPlus/o/l/olol.org.uk/web/insert_registration.php on line 89
I thought the password function was suppose to insert the password in the format 6a55tggg222555ggg
password function
Moderator: General Moderators
password() is a MySQL function. It's used like this:
Code: Select all
INSERT
INTO
my_users
(username,
password)
VALUES
('joe',
password('joespassword'))Real programmers don't comment their code. If it was hard to write, it should be hard to understand.