I have my end-of-course project (in Web Application Development), in which I allow to value and comment to registered users different small commerce stores.
The thing is that how do I check that a user has commented or not to a trade? What I do not want is that a user can comment 10 times in the same trade, only 1 time for each one.
I need a bit of guidance, you do not need to code me or anything if you want, it's to know where to shoot since I'm a little lost.