I have a form which inserts the text (of an article) into a database. When a user submits an article (that has already been submitted) it gets submitted also into the db.
How can I detect a duplicate post (like on stackoverflow)?
Should I select everything from the database and check if the submitted post is like a one before. (I want to post the duplicate alert on the article page as the first comment)
Any help appreciated.
Thanks...