oxDb Fetch Modes

1385131017_accept_databaseOXID database provides two types of fetch modes:

  1. FETCH_MODE_ASSOC: Returns Associative result-set. This result-set contains both Column-Name (Key) and Column-Data (Value).
  2. FETCH_MODE_NUM: Returns Indexed result-set. This result-set contains both Column-index (Key) and Column-Data (Value).

Fetch modes should be passed as argument when calling getDb() function.

oxDb::getDb( oxDb::FETCH_MODE_ASSOC);

If no fetch-mode is defined then the Indexed result-set is returned by default.

Leave a Reply