Hello,
CakePHP: 1.1.8.3544
Database: Postgresql
I use this http://wiki.cakephp.org/docs:helpers:custom:checkboxes
to generate checkboxes which I want to save in the database. Values
from checkboxes are associated with table services like this:
Services {
id integer
name varchar(30);
}
Others {
id int
name varchar(20)
}
services_others {
services_id int
others_id int
}
One service can have many Others.
print_r of data after the form is sent looks like this:
Rejestracja nowego serwisu
Array
(
[Services] => Array
(
[name] => asdasd
)
[services_others] => Array
(
[others_id] => Array
(
[1] => 1
[2] => 4
)
)
)
What is the correct way to save data like this?
Is there a way to just save services_others array from checkboxes?
Regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---