PHP PDO Explained With Examples
PDO is the standard way to talk to a database from PHP. Connecting, prepared statements that stop SQL injection, fetching rows, transactions…
Try: python lists, javascript functions, syntax error, first project
Server-side PHP explained simply — forms, sessions, databases and the errors that stop beginners. Practical examples you can run on a local server.
15 guides
PDO is the standard way to talk to a database from PHP. Connecting, prepared statements that stop SQL injection, fetching rows, transactions…
What PHP is, how it differs from JavaScript, how a request becomes a page, and your first working script — with the…
PHP 7 has been end-of-life since 2022. What PHP 8 changed in the language, what breaks when you move, why the upgrade…
A blank white page and no error anywhere is PHP hiding the problem on purpose. Here is how to see errors in…
Your PHP appears in the browser as source code, or the page is blank where the output should be. The file is…
The security work that actually matters in PHP: prepared statements, output escaping, CSRF tokens, password hashing, file uploads and session handling.
Read, write, append and delete files in PHP, list directories safely, handle permissions errors, and avoid the path traversal mistake that makes…
PHP 8.5 shipped in November 2025 with a pipe operator, a built-in URI parser, a clone-with syntax and array_first. What each one…
Apache serving PHP files as downloads or blank pages after a release upgrade? The PHP module version no longer matches. Here is…
What a framework gives you over plain PHP, how Laravel, Symfony, CodeIgniter and Slim differ, and when writing it yourself is still…
Classes, constructors, visibility, interfaces and traits in PHP — with constructor promotion and the modern syntax that removes most of the boilerplate.
PHP arrays are both lists and dictionaries. How indexed and associative arrays differ, the functions worth knowing, and when to reach for…
Related topics
The fastest way to improve is to read one guide, then build the thing it describes. Start with the basics, or jump straight to a project.