Programming
Get the Last Inserted ID With PHP PDO
Get the last inserted ID with PHP PDO by calling lastInsertId() right after an INSERT. This tutorial captures the AUTO_INCREMENT id of a new…
Web Development Tutorials
NdrieL is a web-development tutorials site — clear, step-by-step guides for WordPress, PHP and Laravel, each one worked through from the first line of code to a result you can run. No fluff — just the steps that work.
New to the stack? Work through these in order — from setup to a running app.
Set up your site
Install WordPress Locally On WindowsCustomize safely
Create a WordPress Child ThemeAdd your own content
Register A Custom Post Type In WordPressMake it dynamic
Create A Shortcode In WordPressLoad your own code
Enqueue CSS And JavaScript In WordPressProgramming
Get the last inserted ID with PHP PDO by calling lastInsertId() right after an INSERT. This tutorial captures the AUTO_INCREMENT id of a new…
Programming
Resize an image in PHP with the GD extension. Load the source, create a smaller canvas, and copy the pixels across with imagecopyresampled() to…
Programming
A PDO transaction groups several database writes into one all-or-nothing unit. This tutorial builds the classic bank-transfer example: the debit and credit either both…
Programming
Handle events in jQuery with .on() — the single method for clicks, form submits, and field changes. This task-list example covers stopping a form's…
Programming
Read a CSV file in PHP with fgetcsv(), which splits each row into an array and keeps quoted fields containing commas intact. Pair it…
Programming
A shortcode lets an author drop dynamic output into any post by typing a small tag in square brackets. This tutorial builds three shortcodes…
Programming
Load stylesheets and scripts the WordPress way, with wp_enqueue_style() and wp_enqueue_script() on the wp_enqueue_scripts hook. This tutorial builds a small plugin that enqueues a…
Server Administration
Run WordPress on your own Windows machine with XAMPP, a free bundle of Apache, MariaDB, PHP, and phpMyAdmin. This tutorial installs the stack, creates…
Programming
Add your own content type to WordPress by calling register_post_type() on the init hook. This gives you a Book type with its own admin…
Programming
Send email in PHP two ways: the built-in mail() function for the simplest case, and PHPMailer over authenticated SMTP for HTML messages, attachments, and…
PHP, Laravel, WordPress and jQuery — hands-on coding guides worked through end to end.
35 tutorials →Apache, environments, and running your stack on Windows without the guesswork.
4 tutorials →MySQL queries, PDO, and the everyday tasks of keeping your data in order.
7 tutorials →