take a look at:
http://www.mail-archive.com/cake-php@googlegroups.com/msg33243.html

they discussed the Problem an found a nice solution!

On 3 Feb., 08:47, sebb86 <kahlc...@googlemail.com> wrote:
> Hello,
> my table **rooms** contains three fields: //id//, //building_id//
> and //room//.
>
> //Building_id// and //room// have to be UNIQUE together, because room
> 9 is in building 1 only one time but room 9 can also conained in
> building 2.
> The //building_id// in the view is realized as a drop-down field. So i
> can only choose buildings, which already exists. Now i want to check
> the existence of the "room"-value, which i type in a form, with the
> actual //building_id//.
>
> How can i solve this problem?
>
> I retrieve my data the following way (view:)
> {{{
> <?php foreach ($rooms as $room): ?>
>         <tr>
>         <td><?php echo $room['Room']['id']; ?></td>
>     <td><?php echo $room['Room']['building_id']; ?> (<?php echo $room
> ['Building']['description']; ?>)</td>
>     <td><?php echo $room['Room']['room']; ?></td>
>         </tr>
>         <?php endforeach; ?>
>
> }}}
>
> Thanks ver much if someone can help.
> Greetings :)

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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