The PDO class

The PDO class

Wstęp

Represents a connection between PHP and a database server.

Skrótowy opis klasy

PDO
PDO {
PDO::__construct ( string $dsn [, string $username [, string $password [, array $driver_options ]]] )
bool PDO::beginTransaction ( void )
bool PDO::commit ( void )
string PDO::errorCode ( void )
array PDO::errorInfo ( void )
int PDO::exec ( string $statement )
mixed PDO::getAttribute ( int $attribute )
array PDO::getAvailableDrivers ( void )
string PDO::lastInsertId ([ string $name ] )
PDOStatement PDO::prepare ( string $statement [, array $driver_options ] )
PDOStatement PDO::query ( string $statement )
string PDO::quote ( string $string [, int $parameter_type ] )
bool PDO::rollBack ( void )
bool PDO::setAttribute ( int $attribute , mixed $value )
}

Spis treści

  • PDO::beginTransaction — Initiates a transaction
  • PDO::commit — Commits a transaction
  • PDO::__construct — Creates a PDO instance representing a connection to a database
  • PDO::errorCode — Fetch the SQLSTATE associated with the last operation on the database handle
  • PDO::errorInfo — Fetch extended error information associated with the last operation on the database handle
  • PDO::exec — Execute an SQL statement and return the number of affected rows
  • PDO::getAttribute — Retrieve a database connection attribute
  • PDO::getAvailableDrivers — Return an array of available PDO drivers
  • PDO::lastInsertId — Returns the ID of the last inserted row or sequence value
  • PDO::prepare — Prepares a statement for execution and returns a statement object
  • PDO::query — Executes an SQL statement, returning a result set as a PDOStatement object
  • PDO::quote — Quotes a string for use in a query.
  • PDO::rollBack — Rolls back a transaction
  • PDO::setAttribute — Set an attribute

smycze reklamowe | pióro | porównanie ofert bankowych | hale | systemy cms wrocław | meble ze stali nierdzewnej | karty graficzne | konto osobiste | zdrowe żywienie
Design by flankerds.com