Passwords

You never store a password. You store a hash of it, and compare hashes later.

1.passwords.php — Hashing and verifying
password_hash() and password_verify(), with the steps written out.
2.passwords_demo.php — Creating a user account
Inserting a new user with a hashed password. Shows its own source.