PDO

pecl::PDO

AdvancedSearch | AreaMap ]

Search:

  Welcome   Installation   FAQ   User Notes   Links  
  User Notes   bindParam   DSN   exec   API differences   fetchCol   setAttribute   API  

Username:

Password:


Areas In
This Wiki

BEPHPUG

Conferences

emPHPower

LiveUser

Main

MDB2

PDO

PHPSVN

PHPTODO

RDBMS

WebBuilder2

API

PDO

bool PDO::beginTransaction ( void )
Description: Initiates a transaction

bool PDO::commit ( void )
Description: Commits a transaction

PDO PDO::__construct ( string dsn [, string username [, string password [, array driver_options]]] )
Description: Creates a PDO instance representing a connection to a database

int PDO::errorCode ( void )
Description: Fetch the SQLSTATE associated with the last operation on the database handle

array PDO::errorInfo ( void )
Description: Fetch extended error information associated with the last operation on the database handle

long PDO::exec ( string statement )
Description: Execute an SQL statement and return the number of affected rows

mixed PDO::getAttribute ( long attribute )
Description: Retrieve a database connection attribute

string PDO::lastInsertId ( [string name] )
Description: Returns the ID of the last inserted row

PDOStatement PDO::prepare ( string statement [, array driver_options] )
Description: Prepares a statement for execution and returns a statement object

object PDO::query ( string statement )
Description: Executes an SQL statement, returning a result set as a PDOStatement object

string PDO::quote ( string string [, int parameter_type] )
Description: Quotes a string for use in a query

bool PDO::rollBack ( void )
Description: Rolls back a transaction

bool PDO::setAttribute ( int attribute, mixed value )
Description: Set an attribute

PDOStatement

bool PDOStatement::bindColumn ( mixed column, mixed &param [, int type [, int maxlen [, mixed driver_options]]] )
Description: Bind a column to a PHP variable

bool PDOStatement::bindParam ( mixed parameter, mixed &variable [, int data_type [, int length]] )
Description: Binds a parameter to a the specified variable name

int PDOStatement::columnCount ( void )
Description: Returns the number of columns in the result set

int PDOStatement::errorCode ( void )
Description: Fetch the SQLSTATE associated with the last operation on the statement handle

array PDOStatement::errorInfo ( void )
Description: Fetch extended error information associated with the last operation on the statement handle

bool PDOStatement::execute ( [array input_parameters] )
Description: Executes a prepared statement

mixed PDOStatement::fetch ( [int fetch_style [, int cursor_orientation [, int cursor_offset]]] )
Description: Fetches the next row from a result set

array PDOStatement::fetchAll ( [int fetch_style] )
Description: Returns an array containing all of the result set rows

string PDOStatement::fetchSingle ( void )
Description: Returns the first column in the next row of a result set

mixed PDOStatement::getAttribute ( long attribute )
Description: Retrieve a statement attribute

mixed PDOStatement::getColumnMeta ( int column )
Description: Returns metadata for a column in a result set

int PDOStatement::rowCount ( void )
Description: Returns the number of rows affected by the last SQL statement

bool PDOStatement::setAttribute ( long attribute, mixed value )
Description: Set a statement attribute

bool PDOStatement::setFetchMode ( int mode )
Description: Set the default fetch mode for this statement

PDO:API (217.234.210.78)
Wed, 13 Apr 2005, 15:50
[ Links | Source | History | RSS ]

This site powered by YaWiki 0.22 beta.


No user comments exist for this page.

Add A Comment
Email:
*Comment:
Catpcha:
* denotes required field

Your comment will be added immediately; please check your comments, and be nice. :-)

Please use plain text only; HTML and PHP code will be converted to entities.

Your email address will be obfuscated with [AT] and [DOT] after you post your comment.