note 99593 added to class.pdo

From: 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

« previous php.notes (#172063) next »