sqlite_current
SQLiteResult->current
SQLiteUnbuffered->current
(No version information available, might be only in CVS)
SQLiteUnbuffered->current — Fetches the current row from a result set as an array
Popis
Object oriented style (method):
sqlite_current() is identical to sqlite_fetch_array() except that it does not advance to the next row prior to returning the data; it returns the data from the current position only.
Parametre
- result
-
The SQLite result resource. This parameter is not required when using the object-oriented method.
- result_type
-
Voliteľný result_type parameter akceptuje konštantu a určuje ako sa bude vrátené pole indexovať. Použitie SQLITE_ASSOC vráti iba asociatívne indexy (nazývané polia) zatiaľčo SQLITE_NUM vráti iba číselné indexy (rádové čísla poľa). SQLITE_BOTH vráti obe asociatívne a číselné indexy. SQLITE_BOTH je východzia pre túto funkciu.
- decode_binary
-
Keď sa decode_binary parameter nastaví na TRUE (default), PHP dekóduje kódovanie binárneho súboru, ktorý aplikoval na dáta, ak bol zakódovaný pomocou sqlite_escape_string(). Túto hodnotu by ste mali ponechať vo svojom východzom stave, pokiaľ nespolupracujete s databázami vytvorenými inými sqlite schopnými aplikáciami.
Vrátené hodnoty
Returns an array of the current row from a result set; FALSE if the current position is beyond the final row.
Názvy stĺpcov, ktoré vracajú SQLITE_ASSOC a SQLITE_BOTH budú case-folded (zmenené z malých na veľké al. naopak) podľa nastavenia voľby sqlite.assoc_case.