php - How to check if a value already exists to avoid duplicates? -


i've got table of urls , don't want duplicate urls. how check see if given url in table using php/mysql?

if don't want have duplicates can following:

if multiple users can insert data db, method suggested @jeremy ruten, can lead error: after performed check can insert similar data table.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -