Previous Page
fetchAll()

Solar_Sql_Select
fetchAssoc()

Next Page
fetchCol()

fetchAssoc()

public array fetchAssoc ( )

Fetches all rows from the database using associative keys (defined by the first column).

Parameters

  • None.

Returns

  • (array)

Description

Fetches all rows from the database using associative keys (defined by the first column).

N.b.: if multiple rows have the same first column value, the last row with that value will override earlier rows.