Top

Follow me and receive all the latest free scripts:

By Email:

Categories
Most Popular Posts
Database

Database

PDO tutorial - Connecting MySQL with PDO

Published December 10, 2014 by , category Database

PDO is a PHP class designed to allow PHP to communicate with a data server. (PDO: PHP Data Object)

PDO is what we call an abstraction layer, which means that it will allow to communicate with any database server: MySQL, Oracle, Postgresql, etc ... (on simple queries).

PDO will allow (it's his major interest) to secure queries and facilitate code reuse through prepared statement.

In this tutorial you will learn how to connect MySQL database using PDO and PHP.

➜ Continue reading "PDO tutorial - Connecting MySQL with PDO"

MySQL, PHP, OOP database connection

Published September 23, 2014 by , category Database

In this tutorial I explain how to set up a database connection, using Object-Oriented Programming (OOP), PHP and MySQL. This can be adapted with PDO or MySQLi of course.

This tutorial includes fully working code example, for the SELECT, INSERT INTO and UPDATE Statements.

The construct method receives all the parameters required for creating new instance...check it out.

MySQL, PHP, OOP database connection

➜ Continue reading "MySQL, PHP, OOP database connection"