You might want do a DISTINCT select on that one if you're talking about per-page "keep me updated".
On Mar 15, 5:42 pm, "Dave Maharaj :: WidePixels.com" <d...@widepixels.com> wrote: > I am using the email component in my site and what I want to do is when a > USER posts a new comment to a specific page it will notify all USERS who in > their profile have selected "Keep me updated" of new comments. > > So I was thinking when a new post is added write a function basically like > this > emailAll () > sendTo = find all USERS where Keep_me_updated = 1; > set sendTo, $sendTo ; > foreach ($sendTo['User'] as $sendTo) : > > the sending info and such..... > > endforeach; > > Is this the best way to go about it? > > Dave --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---