PDO(3) 1 PDO(3)
The PDO class
INTRODUCTION
Represents a connection between PHP and a database server.
CLASS SYNOPSIS
PDO
PDO
o public PDO::__construct (string $dsn, [string $username], [string $password], [array $options])
o public bool PDO::beginTransaction (void )
o public bool PDO::commit (void )
o public mixed PDO::errorCode (void )
o public array PDO::errorInfo (void )
o public int PDO::exec (string $statement)
o public mixed PDO::getAttribute (int $attribute)
o publicstatic array PDO::getAvailableDrivers (void )
o public bool PDO::inTransaction (void )
o public string PDO::lastInsertId NULL ([string $name])
o public PDOStatement PDO::prepare (string $statement, [array $driver_options = array()])
o public PDOStatement PDO::query (string $statement)
o public string PDO::quote (string $string, [int $parameter_type = PDO::PARAM_STR])
o public bool PDO::rollBack (void )
o public bool PDO::setAttribute (int $attribute, mixed $value)
PHP Documentation Group PDO(3)