Set WeberTrivia.com to be my default homepage.   Suggest a Question                                               

Suggest A Question : :  Frequently Asked Questions : :  Search : :  Relevant Manuals : : 
PHP Questions : :  Linux Questions : :  MySQL Questions : : 
home  [ Login ] 

DB_common::setFetchMode()

DB_common::setFetchMode() -- Sets the default fetch mode

Description

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

Parameter

integer $fetchmode

DB_FETCHMODE_ORDERED, DB_FETCHMODE_OBJECT or DB_FETCHMODE_ASSOC, all possibly bit-wise OR'ed with DB_FETCHMODE_FLIPPED. See "Introduction - Fetch" for further information.

string $object_class

The name of the class to use, if the DB_FETCHMODE_OBJECT mode is selected. If no class is specified by default a cast to object from the assoc array row will be done. There is also the possibility to use and extend the DB_row class.

Return value

void - NULL, if ok(!)

Note

This function can not be called statically.

Who's Online
Guest Users: 6
Google
Web
WeberTrivia
WeberDev
WeberForums
 Free Sample Chapters  Free Sample Chapters
  Deliver First Class Web Sites: 101 Essential Checklists
Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?

More Sample Chapters

PHP General