Can you describe how you'd like your data to look?

And (not being a troll, I swear) may I ask why you're not just calling
to the proper model and unbinding as necessary to slim down the
'width' of the result set?

M
On Fri, Aug 21, 2009 at 9:46 AM, dycokac<wrigh...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to