Category: PDO

php crud operation using pdo extension 8

PHP CRUD Operation using PDO Extension

In the previous tutorial we learned about PDO Extension. In this tutorial we will learn CRUD operation using PDO Extension.CRUD Stands for create, read, update and delete record in the database. File Structure for...

Use PDO to Insert Data’ 2

How to use PDO to insert data into the database?

The SQL code for the users table: CREATE TABLE IF NOT EXISTS users (id int(11) NOT NULL AUTO_INCREMENT, name varchar(60) DEFAULT NULL, phone varchar(12) DEFAULT NULL, city varchar(60) DEFAULT NULL, date_added date DEFAULT NULL,...

PHP Data Objects 2

PDO – PHP database extension

PDO (PHP Data Objects) is a PHP extension through which we can access and work with databases. Though PDO is similar in many aspects to mySQLi, it is better to work with for the...