note 99593 added to class.pdo
| From: | RockMeAmadeus at osu1 dot php dot net | Date: | Wed, 25 Aug 2010 17:44:24 +0000 |
| Subject: | note 99593 added to class.pdo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172063@lists.php.net to get a copy of this message | ||
PDO::getAvailableDrivers is the only PDO static method so it needs a double colon. The other PDO
methods are used by an object, so they should use the -> syntax.
* 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
----
Server IP: 69.147.83.197
Probable Submitter: 71.76.203.124
----
Manual Page -- http://www.php.net/manual/en/class.pdo.php
Edit -- https://master.php.net/note/edit/99593
Del: integrated -- https://master.php.net/note/delete/99593/integrated
Del: useless -- https://master.php.net/note/delete/99593/useless
Del: bad code -- https://master.php.net/note/delete/99593/bad+code
Del: spam -- https://master.php.net/note/delete/99593/spam
Del: non-english -- https://master.php.net/note/delete/99593/non-english
Del: in docs -- https://master.php.net/note/delete/99593/in+docs
Del: other reasons-- https://master.php.net/note/delete/99593
Reject -- https://master.php.net/note/reject/99593
Search -- https://master.php.net/manage/user-notes.php