And I've a bigger problem. Hope to be clear in my explanation. Well I built an application with workers, places, relations and presences made like this:
Place table: name, id ->place in wich workers are working Workers table: name, lastname, id Relations: worker_id, place_id, id ->It puts in relation the workers with the place they work in Presences: begin, end, pause, date, worker_id, place_id ->Days in wich workers work in assigned places. Well, I built a form inside workers/view in wich I can insert the presences. The problem is that when I insert rules for validation in presence.php, they don't work. If I put in every variable VALID_NOT_EMPTY it saves the same data in my DB. Maybe it happens because the form is in the page of workers/view? On 4 Mar, 16:45, mcphisto <[EMAIL PROTECTED]> wrote: > The problem si that book.cakephp.org and tempdocs.cakephp.org are > down... > > On 4 Mar, 16:26, "Christian Winther" <[EMAIL PROTECTED]> wrote: > > > Use the docs luke ! book.cakephp.org and tempdocs.cakephp.org - check data > > validation > > > -----Original Message----- > > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of > > mcphisto > > Sent: 4. marts 2008 16:18 > > To: Cake PHP > > Subject: Form Validation on DB > > > Hi, I've a problem in my application. I would exclude the possibility > > of saving duoble data in my database. For example in this table: > > > name, username, password > > > I would like there couldn't be 2 users with the same username. > > > How can I do it? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
