CodePrimer
Search a living directory of web syntax. Pick a problem, copy a working sample, then adapt it.
PHP
Intermediate
PDO prepared DELETE
How do I delete a row safely?
PHP
Intermediate
PDO fetch all rows
How do I list records from MySQL?
PHP
Intermediate
Hash passwords with password_hash
How should I store passwords?
PHP
Beginner
Destroy a PHP session
How do I log a user out?
PHP
Beginner
require db.php connection
How do I reuse one DB connection file?
PHP
Beginner
Redirect with header Location
How do I send the browser to another page?
PHP
Beginner
Detect GET vs POST in PHP
How do I know which HTTP method was used?
PHP
Beginner
Reuse header with include
How do I share a header across pages?