The fetchAssoc() function returns the record as an associative array: "field" => value.
Syntax
fetchAssoc()
Arguments
No arguments.
Return value
Returns the record as an associative array: "field" => value.
Null, if there are no matching records.
Example
$rs = DB::Query("select * from carsmake");
while( $data = $rs->fetchAssoc() )
{
echo $data["id"];
echo $data["make"];
}
See also:
•QueryResult object: fetchAssoc()
•QueryResult object: fetchNumeric()