previousMDB_Common::queryRow() (Previous) (Next) MDB_Common::tableInfo()next

View this page in Last updated: Tue, 02 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

MDB_Common::setFetchMode()

MDB_Common::setFetchMode() – sets the default fetch mode

Synopsis

require_once 'MDB.php';

void setFetchMode ( integer $fetchmode , string $object_class = null )

Description

Sets the fetch mode used by default on queries for the connection.

Parameter

integer $fetchmode

MDB_FETCHMODE_ORDEREDor MDB_FETCHMODE_ASSOC, all possibly bit-wise OR'ed with MDB_FETCHMODE_FLIPPED. See "Introduction - Fetch" for further information.

Return value

void - NULL, if ok(!)

Throws

Possible PEAR_Error values
Error code Error message Reason Solution
NULL invalid fetchmode mode The given fetch mode does not exists or is not implement in your MDB_Error version. Check writing of the argument and your used version of MDB.

Note

This function can not be called statically.

previousMDB_Common::queryRow() (Previous) (Next) MDB_Common::tableInfo()next

Download Documentation Last updated: Tue, 02 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.