note 72262 rejected from function.pdo-query by nlopess
| From: | nlopess@php.net | Date: | Wed, 10 Jan 2007 14:53:16 +0000 |
| Subject: | note 72262 rejected from function.pdo-query by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121531@lists.php.net to get a copy of this message | ||
Note Submitter: janusz at fide dot pl
----
You can call this function as
PDOStatement PDO::query ( string statement, int fetch_mode )
where fetch_mode is one of PDO::FETCH_... constants to have results for example as associative array
with column names as keys (using PDO::FETCH_ASSOC) instead of default PDO::FETCH_BOTH that fetches
array with column names and numerical indexes as keys.