Your explanation looks exactly $this->find('list') :
http://book.cakephp.org/view/810/find-list

On Aug 21, 8:46 pm, dycokac <[email protected]> wrote:
> I would like to gain better control/understanding of formatting the
> returned array from the query() method.
>
> I have thought of a few ways around this but can't quite figure out
> how to run something like a mysql_query and then mysql_fetch_array
> procedure to make my own array. I'm stuck at how to get the database
> connection from cake.
>
> I'm looking to get an associative array where the primary key column
> of my table is the key of my associative array and a second field from
> the table is the value for each array position. Then I can use this
> array to get at my name in my view.
>
> I haven't found a good resource yet to help me understand if it's
> possible to control the resulting array from a query() call or how to
> better link in those queries to get all I want out of it.
>
> Thanks for any help I receive.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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