Friday, February 27, 2009

Re: Saving a multiple checkbox

bump?

On Feb 26, 1:54 pm, Matt <mmanai...@gmail.com> wrote:
> Ok, so I have created a multiple checkbox field with the help of the
> html helpers:
> <?php echo $form->input('type', array('type' => 'select',
> 'multiple'=>'true',
> 'options' => array('1111'=>'aaaa', '2222'=>'bbbb',
> '3333'=>'cccc')));  ?>
>
> Looks great. But when I try to save it, I get the following error:
> Notice (8): Array to string conversion [CORE/cake/libs/model/
> datasources/dbo_source.php, line 571]
>
> Warning (512): SQL Error: 1054: Unknown column 'Array' in 'field
> list' [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
>
> I'm scratching my head on this one, and would love to find a solution!
>
> Thanks!
> -Mathieu
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: