Blog

python tutorials and learn python

Created with Sketch.

fetchAll

fetchAll Summary: in this tutorial, you’ll learn how to use the PHP fetchAll() method of the PDOStatement object to return an array containing all rows of a result set. Introduction to the PHP fetchAll() method The fetchAll() is a method of the PDOStatement class. The fetchAll() method allows you to fetch all rows from a…
Read more

fetch

fetch Summary: in this tutorial, you’ll learn how to use the PHP fetch() method of the PDOStatement object to fetch a row from the result set. Introduction to the PHP fetch() method The fetch() is a method of the PDOStatement class. The fetch() method allows you to fetch a row from a result set associated…
Read more

PHP PDO Delete

PHP PDO Delete Summary: in this tutorial, you will learn how to delete one or more rows in a table from PHP using PDO. To delete one or more rows from a table, you can use a prepared statement. Here are the steps: First, make a connection to the database by creating a new instance…
Read more

PDO Querying Data

PDO Querying Data Summary: in this tutorial, you will learn to query data from a table using PHP PDO using the query() method of the PDO object and a prepared statement. To select data from a table using PDO, you can use: The query() method of a PDO object. Or a prepared statement. When a…
Read more

PHP PDO Update

PHP PDO Update Summary: in this tutorial, you will learn how to update data in a table using PHP PDO. Updating data from PHP using PDO To update data in a table from PHP using PDO, you follow these steps: First, connect to the database by creating a new instance of the PDO class. Next,…
Read more

Inserting Data into Tables from PDO

Inserting Data into Tables from PDO Summary: in this tutorial, you will learn how to insert one or more rows into a table using PHP PDO. The steps for inserting a row into a table To insert a row into a table, you follow these steps: First, connect to the database by creating a new…
Read more

PDO IN

PDO IN Summary: in this tutorial, you’ll learn how to use PDO to execute a query with the IN operator. A quick introduction to the IN operator The IN operator returns true if a value is in a set of values. The IN operator can be used in the WHERE clause of the SELECT, UPDATE…
Read more

PDO LIKE

PDO LIKE Summary: in this tutorial, you’ll learn how to use PDO to execute a query with the LIKE operator. Introduction to the SQL LIKE operator The LIKE operator returns true if a character string matches a specified pattern. Typically, a pattern includes wildcard characters like: % matches any string of zero or more character…
Read more

Inserting Data into Tables from PDO

Inserting Data into Tables from PDO Summary: in this tutorial, you will learn how to insert one or more rows into a table using PHP PDO. The steps for inserting a row into a table To insert a row into a table, you follow these steps: First, connect to the database by creating a new…
Read more

Creating New Tables

Creating New Tables Summary: in this tutorial, you wil learn how to create new tables in the database using PDO. SQL statements for creating new tables To create a new table in a database, you use the CREATE TABLE statement. For example, the following CREATE TABLE statement creates the authors table: CREATE TABLE authors( author_id…
Read more