Solar_Sql_Adapter::fetchAssoc()
public
array
Solar_Sql_Adapter::fetchAssoc
( array|string $spec
, array $data = array ()
)
Fetches all rows from the database using associative keys (defined by the first column).
Parameters
(array|string)
$spec
: An array of component parts for a SELECT, or a literal query string.(array)
$data
: An associative array of data to bind into the SELECT statement.
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.