You want the Model::generateList() method. It does exactly what you
need, and it's listed in the API, and in the manual (under 'Model').

On Jul 2, 11:28 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Is there a built in function for take the results of a generic query()
> call and making an associative array?  For example, I want to use a
> SELECT DISTINCT field_name and simply get an array of those values, or
> an associative array of array(value => value) to use in an HTML select
>
> I couldn't find anything in any docs for this.
> Brian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to