Each time a user types a word into a text field, I call a function that writes the word to the database.
table: id | word | category
Now if user paging the results, the operation repeats and the results duplicate in the database.
Is there a way to not duplicate the results?
Checking the word and category in the database will not give the expected result, because they can be entered today, yesterday, the day before yesterday.
Date and time also, because two users can enter the same words in a short space of time.