PHP
Query a database with PDO prepared statements
Connect with PDO in exception mode and bind parameters to prevent SQL injection.
Server-side PHP recipes and security-conscious helpers.
Loading snippets…
14 snippets
Connect with PDO in exception mode and bind parameters to prevent SQL injection.
Store passwords with password_hash and check them with password_verify, including rehash on login.