Friday, February 24, 2012

Re: Handling data returned by multi-select box

If I dump out the array, it returns the correct values within the
array - just integers.

Problem is, I don't know how to process the values of the array to
pass into the update query. So, if I have an array being generated
that looks like Array (1,3,4), how do I insert it into the update
query as UPDATE ... WHERE ... VALUES (id, '1,3,4') instead of ...
VALUES (id, Array) which is being returned now.

Sorry, if I'm being unclear here, I can answer any other specific
questions if you have any.
Thanks for the reply!


On Feb 23, 6:28 pm, jeremyharris <funeralm...@gmail.com> wrote:
> It sounds like your $dropdownOpts var might be incorrect. What is it when
> you debug?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate