Thanks Richard for the code. Works like charm.
--~--~-~--~~~---~--~~
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
I could easily skip that validation and always let a new vote through.
Only when the same user votes again their original vote would be
updated. That is totally a matter of taste. I just happen to like
being abel to change my mind and update my vote. That doen't work
better for rating users, posts
I wrote one a while back and posted it to this group. can't seem to
find it now, but here's a link to it stored elsewhere:
http://markmail.org/message/nleqrkgtm2ji6sfe
On Sep 14, 11:10 am, Shaun wrote:
> I have a table called comment_ratings where users can rate comments up
> or down. It look
Hey,
you can create a custom validation function which will check for unique data
in both fields.
Faifas
On Mon, Sep 14, 2009 at 13:10, Shaun wrote:
>
> I have a table called comment_ratings where users can rate comments up
> or down. It looks like this:
>
> TABLE: comment_ratings
>id =