Please wait while we load your page...
 

Announcements

PHP Manual :: The PDO class



Large Objects (LOBs) || PDO::beginTransaction || PDO || PHP Manual

(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)

Represents a connection between PHP and a database server.

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


Large Objects (LOBs) || PDO::beginTransaction || PDO || PHP Manual
Live Chat Not Available