API17:JDatabase::loadAssocList
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JDatabase::loadAssocList
Description
Load a associactive list of database rows.
Description:JDatabase::loadAssocList [Edit Descripton]
Synopsis
public JDatabase::loadAssocList ($key=null, $column=null)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $key | string | null | The field name of a primary key |
| $column | string | null | An optional column name. Instead of the whole row, only this column value will be in the return array. |
Returns
array If key is empty as sequential list of returned records.
Defined in
libraries/joomla/database/database.php (line 670)
- see source code in BitBucket
Referenced by
See also
SeeAlso:JDatabase::loadAssocList
Examples
<CodeExamplesForm />
