Tagged articles
29 articles
Page 1 of 1
php Courses
php Courses
Oct 27, 2025 · Backend Development

Master PHP Database Connections: MySQLi and PDO Step‑by‑Step Guide

Learn how to establish, use, and close MySQL database connections in PHP with detailed MySQLi and PDO examples, covering object‑oriented syntax, prepared statements, error handling, and best practices for secure and efficient backend development.

Database ConnectionMySQLiPDO
0 likes · 4 min read
Master PHP Database Connections: MySQLi and PDO Step‑by‑Step Guide
php Courses
php Courses
Oct 24, 2025 · Backend Development

Boost PHP Database Performance: Persistent Connections, Connection Pools, and Caching

Learn how to accelerate PHP database operations by employing persistent connections, implementing a connection pool, and caching query results, with clear code examples for mysqli, PDO, and Memcached that illustrate each optimization technique and its impact on reducing latency and resource usage.

Connection PoolDatabase OptimizationMemcached
0 likes · 5 min read
Boost PHP Database Performance: Persistent Connections, Connection Pools, and Caching
php Courses
php Courses
Oct 10, 2025 · Backend Development

Master PHP Database Connections: MySQL with mysqli and PDO

This tutorial walks you through establishing MySQL connections in PHP using both the mysqli extension and PDO, covering procedural and object‑oriented code, prepared statements, error handling, and proper connection closure for robust backend development.

BackendMySQLiPDO
0 likes · 4 min read
Master PHP Database Connections: MySQL with mysqli and PDO
php Courses
php Courses
Aug 29, 2024 · Backend Development

10 Advanced PHP Techniques to Boost Performance and Efficiency

This article introduces ten lesser‑known PHP tricks—including memory management, Composer dependency handling, the built‑in web server, anonymous classes, try‑catch error handling, generators, traits, built‑in functions, PDO, and namespaces—to help developers write more efficient, maintainable, and secure code.

BackendComposerGenerators
0 likes · 9 min read
10 Advanced PHP Techniques to Boost Performance and Efficiency
Open Source Tech Hub
Open Source Tech Hub
Jun 30, 2024 · Databases

How to Use Medoo – A Lightweight PHP Database Framework Tutorial

This guide introduces Medoo, a lightweight PHP database framework built on PDO, outlines its key features, shows installation via Composer, demonstrates basic CRUD operations, and explains integration with the Webman framework, including multi‑database configuration and usage examples.

CRUDComposerMedoo
0 likes · 4 min read
How to Use Medoo – A Lightweight PHP Database Framework Tutorial
php Courses
php Courses
Apr 24, 2024 · Backend Development

How to Connect to a Database Using PHP

This tutorial explains how to connect PHP to databases using both mysqli and PDO, covering connection setup, error handling, executing queries, and properly closing the connection, with complete code examples for each method.

Database ConnectionMySQLiPDO
0 likes · 4 min read
How to Connect to a Database Using PHP
php Courses
php Courses
Jan 9, 2024 · Databases

Efficiently Inserting 10 Million Records into MySQL with PHP

This tutorial explains how to use PHP and PDO to quickly insert ten million rows into a remote MySQL database by preparing the connection, employing batch inserts, managing transactions, tuning MySQL settings, and optionally using the LOAD DATA statement for optimal performance.

Bulk InsertPDOPHP
0 likes · 6 min read
Efficiently Inserting 10 Million Records into MySQL with PHP
php Courses
php Courses
Dec 21, 2023 · Backend Development

Implementing a Data Search Feature with PHP and Vue

This article demonstrates how to build a simple data search feature by creating a PHP backend API using PDO for database queries and a Vue.js frontend that sends Ajax requests, processes the JSON response, and displays matching student records in a list.

Data SearchPDOPHP
0 likes · 6 min read
Implementing a Data Search Feature with PHP and Vue
php Courses
php Courses
Oct 9, 2023 · Backend Development

Debugging and Optimizing Database Connections in PHP

This article explains how to debug and optimize PHP database connections using PDO and mysqli, demonstrates error handling and logging techniques, and presents performance improvements such as persistent connections, connection pooling, and query optimization with practical code examples.

Connection PoolDebuggingPDO
0 likes · 6 min read
Debugging and Optimizing Database Connections in PHP
Laravel Tech Community
Laravel Tech Community
Sep 5, 2023 · Backend Development

Using MySQLi and PDO to Prevent SQL Injection in PHP

The article explains why directly concatenating user input into SQL queries leads to injection vulnerabilities and demonstrates how to secure PHP database operations using input validation, escaping functions, and prepared statements with MySQLi and PDO, while comparing related sanitization functions.

MySQLiPDOPHP
0 likes · 5 min read
Using MySQLi and PDO to Prevent SQL Injection in PHP
php Courses
php Courses
Mar 13, 2023 · Backend Development

How PHP Prepared Statements Prevent SQL Injection

This article explains how PHP's prepared statements and parameterized queries, especially using the PDO extension, protect against SQL injection by compiling query templates, binding parameters safely, and avoiding repeated parsing, while also showing practical code examples and Laravel's underlying implementation.

PDOPrepared Statements
0 likes · 5 min read
How PHP Prepared Statements Prevent SQL Injection
Laravel Tech Community
Laravel Tech Community
Jun 15, 2021 · Backend Development

PDO::inTransaction – Checking If Inside a Transaction

The PDO::inTransaction method returns a boolean indicating whether the current database connection is actively inside a transaction, works only with drivers that support transactions, takes no parameters, and returns TRUE on success and FALSE on failure.

BackendPDOPHP
0 likes · 1 min read
PDO::inTransaction – Checking If Inside a Transaction
Laravel Tech Community
Laravel Tech Community
Jun 14, 2021 · Backend Development

PDO::rollBack – Rolling Back a Transaction in PHP

The article explains how the PHP PDO::rollBack() method aborts the current transaction, restores autocommit mode when needed, outlines its parameter‑less signature, return values, and provides a complete code example demonstrating transaction handling and rollback behavior.

BackendPDOPHP
0 likes · 2 min read
PDO::rollBack – Rolling Back a Transaction in PHP
Laravel Tech Community
Laravel Tech Community
Jun 9, 2021 · Backend Development

PDO::inTransaction – Check If Inside a Transaction

PDO::inTransaction is a PHP PDO method that returns a boolean indicating whether the current database connection is actively within a transaction, applicable only to drivers that support transactions, and it takes no parameters.

BackendPDOPHP
0 likes · 1 min read
PDO::inTransaction – Check If Inside a Transaction
php Courses
php Courses
Apr 26, 2021 · Databases

Using PDO::quote to Safely Quote Strings in PHP

This article explains how to use PHP's PDO::quote function to safely add quotes to strings for SQL statements, describes its syntax and parameters, and provides two practical code examples demonstrating quoting of normal and potentially dangerous strings.

PDOSecurityquote
0 likes · 3 min read
Using PDO::quote to Safely Quote Strings in PHP
php Courses
php Courses
Mar 19, 2021 · Backend Development

Understanding PDOStatement::fetch() Fetch Styles in PHP

This article explains the PDOStatement::fetch() method in PHP, detailing the available fetch style constants, their effects on result set formatting, and shows how to configure the statement to return only associative arrays for cleaner data handling.

BackendFetchModePDO
0 likes · 3 min read
Understanding PDOStatement::fetch() Fetch Styles in PHP
58 Tech
58 Tech
Apr 11, 2019 · Databases

Analyzing Slow Query Issues Caused by PHP PDO Prepare Behavior

This article investigates why slow‑query logs show numerous slow queries without visible SQL statements, reproduces the problem using MySQL client, Perl and PHP simulations, compares local (emulated) and server‑side PDO prepare modes, and provides practical recommendations for configuring prepared statements to avoid hidden performance bottlenecks.

Database PerformancePDOPrepared Statements
0 likes · 7 min read
Analyzing Slow Query Issues Caused by PHP PDO Prepare Behavior
360 Quality & Efficiency
360 Quality & Efficiency
Nov 1, 2016 · Information Security

Understanding SQL Injection Attacks and Defensive Techniques

The article reviews the author’s experience with security testing, explains the severe risks of SQL injection, demonstrates vulnerable server‑side code, and provides practical remediation methods such as input sanitization, type casting, and using prepared statements with PDO.

Database SecurityPDOSQL injection
0 likes · 5 min read
Understanding SQL Injection Attacks and Defensive Techniques