+612 9045 4394
 
CHECKOUT
Learning PHP Data Objects - Dennis Popel

Learning PHP Data Objects

Paperback

Published: 1st August 2007
Ships: 15 business days
15 business days
$57.18
if ordered within

This book is for PHP developers who need to use PHP Data Objects (PDO) for data abstraction. Covering an overview of PDO, getting started, error handling, prepared statements, handling rowsets, advanced uses, and use in an MVC application, it first describes the topic, then gives step-by-step instructions for a particular example. A final appendix covers the object-oriented features of PHP 5. Readers should be familiar with PHP and aware of the basics of data abstraction. Lighter, faster, more powerful than existing data abstraction interfaces, PDO is an open-source query abstraction layer for accessing databases and manipulating returned records that is used with a database-specific PDO driver to access a particular database. It has the same role as classic database abstraction layers such as ODBC and JDBC. PDO ships with PHP 5.1, and is available as a PECL extension for PHP 5.0; PDO requires the new OO features in the core of PHP 5, and so will not run with earlier versions of PHP.

Chapter 1 gives an overview of PDO along with a few features like single interface for creating a connection, connection strings, uniform statement methods, and use of exceptions and a singe system of error codes.

Chapter 2 helps to get you started with PDO, by creating sample database and then by creating a connection object. It also introduces PDOStatement classes.

Chapter 3 deals with various error handling processes and their uses.

Chapter 4 is about prepared statements. It deals with using prepared statements without binding values, binding a variable and a parameter to a prepared statement, and using LOBs as streams.

Chapter 5 talks about handling rowsets. It covers different ways to retrieve multiple rows. Scrollable cursors, and MySQL unbuffered queries and closing the cursor along with multiple queries, and rowsets are also explained.

Chapter 6 talks about advanced uses of PDO, and includes setting connection parameters, transactions, and methods of PDO and PDOStatement class.

Chapter 7 gives an example where creation of the method part of MVC application is discussed.

Appendix explains the object-oriented features like inheritance, encapsulation, polymorphism, and exception handling.

ISBN: 9781847192660
ISBN-10: 1847192661
Audience: General
Format: Paperback
Language: English
Number Of Pages: 188
Published: 1st August 2007
Publisher: Packt Publishing Limited
Country of Publication: GB
Dimensions (cm): 23.5 x 19.1  x 0.64
Weight (kg): 0.32