To close this question:
SQL uses password()
as a function and will not show a password for security reasons when using that word. Here's some documentation on it:
- https://dev.mysql.com/doc/refman/5.0/en/set-password.html
- https://dev.mysql.com/doc/refman/5.1/en/password-hashing.html
Therefore, use another name for the password variable.
Passwords
I also noticed that you are storing passwords in plain text. This is not recommended.
Use one of the following:
- CRYPT_BLOWFISH
crypt()
bcrypt()
scrypt()
- On OPENWALL
- PBKDF2
- PBKDF2 on PHP.net
- PHP 5.5's
password_hash()
function.
Other links:
Footnotes:
mysql_*
functions deprecation notice:
http://www.php.net/manual/en/intro.mysql.php
This extension is deprecated as of PHP 5.5.0, and is not recommended for writing new code as it will be removed in the future. Instead, either the mysqli or PDO_MySQL extension should be used. See also the MySQL API Overview for further help while choosing a MySQL API.
These functions allow you to access MySQL database servers. More information about MySQL can be found at » http://www.mysql.com/.
Documentation for MySQL can be found at » http://dev.mysql.com/doc/.