0% found this document useful (0 votes)
27 views5 pages

PHP Infomatics 4

PDO (PHP Data Objects) is a lightweight and consistent interface for accessing databases in PHP. It provides abstraction so the same functions can be used regardless of the database, but does not rewrite SQL or emulate missing features. Database drivers implement the PDO interface to allow access to specific databases.

Uploaded by

Jus Wa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views5 pages

PHP Infomatics 4

PDO (PHP Data Objects) is a lightweight and consistent interface for accessing databases in PHP. It provides abstraction so the same functions can be used regardless of the database, but does not rewrite SQL or emulate missing features. Database drivers implement the PDO interface to allow access to specific databases.

Uploaded by

Jus Wa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

PHP PDO (PHP DATA OBJECTS)

- The PHP Data Objects (PDO) extension defines a lightweight, consistent interface
for accessing databases in PHP.
- Each database driver that implements the PDO interface can expose database-
specific features as regular extension functions.
- Note that you cannot perform any database functions using the PDO extension by
itself; you must use a database-specific PDO driver to access a database server.
- PDO provides a data-access abstraction layer, which means that, regardless of
which database you're using, you use the same functions to issue queries and fetch
data.
- PDO does not provide a database abstraction; it doesn't rewrite SQL or emulate
missing features. You should use a full-blown abstraction layer if you need that
facility.
- is an interface for accessing databases in PHP without tying code to a specific
database.

PDO DRIVERS

SAMPLE PDOs:
- MySQL
PDO:

INSTALLING PDO:
COMMANDS:

CREATING TABLES:
MySQL:
PDO:

INSERTING DATA:
MySQL
PDO:

You might also like