Hi, I have a feature that when a user searches a term it enters the term into the database, I also have it set so it updates the count of searches for that term on duplicate. However I am now trying to add a feature so that the user can keep refreshing the page to update the searches for that term, I came up with taking the users ip and having that as the last ip to search that term. This means the term should only update if the user searching the term doesn't have the ip of the last user. This is what I have so far but I think the duplicate update part isn't working? mysql_query("INSERT IGNORE INTO search (term) VALUES ('$search') ON DUPLICATE KEY UPDATE count = count + 1, ip = '$ip' WHERE ip != '$ip'"); PHP: